design-infraGitHub
Report a problem or share feedback← Catalog

Gestures

free

motion/gestures

An example of using gestures to animate an element using Motion for React's simple whileTap and whileHover props.

enter — mediumrecipeMinimalRefinedPlayful
$pnpm add motion # then adapt the free source from https://motion.dev/examples/react-gestures

npm deps: motion

Gestures preview
Source
Motion (motion.dev)
Kind
transition
Categories
transition
Use as
recipe — technique you apply to your own markup
Applies to
buttoncard
Motion
on enter · medium · motion · medium cost
Tags
motion, whileHover, whileTap
Licence
motion / motion/react / motion-v are MIT. Motion+ (premium components, example source, AI Kit pro tools) is paid — one-time Personal licence or per-seat Business.
Live demo
motion.dev
Docs
motion.dev