Installation
Add interactivity
Make your animations interactive with hover effects and springs.- React
- JavaScript
Use The box will spring and scale up when you hover over it.
whileHover to animate on hover, and add a spring transition for natural motion:Control animations with state
- React
- JavaScript
Animate based on component state:Click the box to toggle its position.
Next steps
Animation API
Explore Motion’s animation capabilities
Gestures
Add drag, hover, and tap interactions
Spring Physics
Create natural, physics-based animations
Examples
Browse 100+ animation examples