What problem does it solve?
Motion provides a simple, consistent way to add smooth, high-performance animations to React components, eliminating ad-hoc CSS tricks and scattered animation logic.
Core Features & Use Cases
- Basic animated components using motion elements for transitions, entrances, and exits.
- Gesture support with whileHover, whileTap, and in-view animations to enhance interactivity.
- Layout animations for auto-arranging grids, panels, and lists with minimal code.
- Variants and staggering to orchestrate complex animation sequences across multiple components.
- Exit animations and presence controls via AnimatePresence to manage component lifecycles.
- Scroll- and visibility-triggered animations for engaging, performant UI.
Quick Start
Install the library (npm install motion) and import { motion } from "motion/react". Then render a basic motion.div with initial, animate, and exit props to see a simple animation.