Examples
Production-ready snippets for Motion across React, JavaScript, and Vue. Ready to copy paste straight into your site, or adapt with AI.
Basics
AnimatePresence modes
Scale correction
Drag with spring follow
Variants
Parallax
Path drawing
Path morphing
Reorder animation
Element scroll-linked animation
Scroll-linked animations
Scroll-linked spring animation
Track element within viewport
Scroll-triggered animations
Shared layout animation
Animate state
useTime
Value transform & path drawing
Aspect Ratio
Bounce Easing
Drag Lock Direction
HTML content
CSS Spring
Drag
Drag: Constraints
Enter Animation
Exit animation
Follow pointer with spring
Gestures
Keyframes
Keyframe wildcards
Layout animation
Motion along a path
Rotate
useAnimationFrame
Transition
Pull example source straight into Cursor, Claude Code, and any MCP-aware agent.
Premium examples are searchable for Motion+ members through the Motion MCP server.
Learn more about Motion+Motion+
Unlock all 370+ examples
- Source code for every Plus example.
- Provide examples direct to your agent via Motion's MCP.
- Lifetime access to new examples and APIs.