Skip to content

Instantly share code, notes, and snippets.

@EvanMarie
Created July 23, 2023 00:37
Show Gist options
  • Save EvanMarie/9968fc5fc8d959b55d3441c03119c797 to your computer and use it in GitHub Desktop.
Save EvanMarie/9968fc5fc8d959b55d3441c03119c797 to your computer and use it in GitHub Desktop.
framer-motion_ex01
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