Created
July 23, 2023 00:37
-
-
Save EvanMarie/9968fc5fc8d959b55d3441c03119c797 to your computer and use it in GitHub Desktop.
framer-motion_ex01
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export const ExampleOne = () => ( | |
<motion.div | |
whileHover={{ scale: 1.2 }} | |
whileTap={{ scale: 1.1 }} | |
drag="x" | |
dragConstraints={{ left: -100, right: 100 }} | |
style={SmallPinkSquare} | |
/> | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment