What problem does it solve?
Motion (Framer Motion) eliminates the complexity of building smooth UI animations by providing a declarative, performant way to animate React components, interactions, and state transitions.
Core Features & Use Cases
- Declarative Motion Components: Animate UI by wrapping elements with
motion.* and driving changes via animate, initial, and exit.
- Variants & Orchestrated State: Define reusable named animation states (e.g., hidden/visible/exit) and coordinate animations across parent/child hierarchies.
- Gestures & Micro-Interactions: Add hover, tap, focus, and drag behaviors using
whileHover, whileTap, whileFocus, and drag without imperative animation code.
- Layout & Shared Transitions: Animate repositioning/resizing with
layout, and create shared element transitions with layoutId.
- Scroll-Triggered & Performance-Aware Animations: Reveal and animate elements as they enter the viewport using
whileInView and tune transitions for responsive experiences.
Quick Start
Use the motion-framer skill to add a hover/tap animated card in your React UI by describing the interaction (scale, opacity, and optional spring timing) and where the animation should appear.