What problem does it solve?
This Skill enables developers to add high-quality, GPU-accelerated animations to React UIs, replacing static layouts with interactive, motion-rich experiences.
Core Features & Use Cases
- Gestures & Drag: supports drag, hover, tap interactions.
- Layout & Shared Elements: FLIP-based layout animations and smooth transitions between views.
- Scroll & Parallax: scroll-driven effects and parallax backgrounds for engaging UIs.
- SVG Animations: path morphing and vector animations for dynamic graphics.
- Performance & Bundling: supports LazyMotion to reduce bundle size and load animation features on demand.
- Use Case: ideal for modals, carousels, dashboards, and product galleries.
Quick Start
Install Motion in your project with a package manager. For Next.js App Router, add "use client" to your component file and import from motion/react-client. For standard React setups, import from motion/react and use the motion components. Create a simple animated box using a motion.div with initial and animate props.