Report a problem or share feedback← Catalog
Gestures
freemotion/gestures
An example of using gestures to animate an element using Motion for React's simple whileTap and whileHover props.
$
pnpm add motion # then adapt the free source from https://motion.dev/examples/react-gesturesnpm deps: motion

- 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
Similar
Compare all 4 →- Motion presetsoc/motion-presetsdesign-infra's motion languages (still / quiet / lively / cinematic) as motion/react transitions, springs and variants (fadeUp, scaleIn, stagger, press, lift). Set PROJECT_MOTION to your DESIGN.md `motion:` so hand-written animations match the system.
- Rolling text buttonmotion/rolling-text-buttonButton whose label rolls to a new word on hover/click — a free alternative to Motion+ text components. Free example (motion is MIT); copy and adapt the source from the example page.
- AnimateView: App Storemotion/animate-view-app-storeAn example of animating cards inspired by the iOS App Store using AnimateView's shared element transitions from Motion for React.