svgl/animations/tap.js

13 lines
219 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-06 01:03:33 +08:00
<motion.div whileTap={{ scale: 0.98 }}>
2022-03-04 21:34:58 +08:00
{children}
</motion.div>
);
};
export default Tap;