svgl/animations/tap.js
2022-03-25 14:57:20 +00:00

13 lines
249 B
JavaScript

import React from "react";
import { motion } from "framer-motion";
const Tap = ({ children }) => {
return (
<motion.div whileHover={{ scale: 1.040 }} whileTap={{ scale: 0.98 }}>
{children}
</motion.div>
);
};
export default Tap;