svgl/animations/tap.js

13 lines
249 B
JavaScript
Raw Normal View History

2022-03-04 21:34:58 +08:00
import React from "react";
import { motion } from "framer-motion";
const Tap = ({ children }) => {
return (
2022-03-25 22:57:20 +08:00
<motion.div whileHover={{ scale: 1.040 }} whileTap={{ scale: 0.98 }}>
2022-03-04 21:34:58 +08:00
{children}
</motion.div>
);
};
export default Tap;