motion-react

Animate React UIs with declarative motion components, variants, AnimatePresence, and layout transitions.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/jordanfbrown/dotfiles --skill motion-react
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: motion-react
Source: https://github.com/jordanfbrown/dotfiles/tree/main/claude/dot-claude/skills/motion-react
Command: npx skills add https://github.com/jordanfbrown/dotfiles --skill motion-react

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

React developers need to add fluid, performant animations and gesture-driven interactions to modern UIs. Motion for React provides declarative primitives, layout transitions, and composable states to simplify complex motion.

Core Features & Use Cases

  • Motion components for HTML/SVG elements to animate properties easily.
  • Gesture and interaction support: hover, tap, drag, scroll-driven animations.
  • AnimatePresence and layout transitions for polished UIs and animations across component lifecycles.
  • Variants and dynamic animations to compose reusable animation states and complex sequences.
  • Use Case: Build a responsive card carousel with transitions, drag gestures, and smooth entrance/exit animations.

Quick Start

Install the library and start using motion components in your React project to begin animating elements.

Frequently Asked Questions about motion-react

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I add declarative animations to React components?

To add declarative animations to React components, you use motion primitives to animate HTML and SVG elements by passing properties directly to motion components, enabling smooth transitions without manual timeline management.

How do I animate component entrance and exit transitions in React?

AnimatePresence handles component entrance and exit transitions in React by tracking mounted elements and triggering exit animations before they are removed from the DOM, ensuring polished UI lifecycles.

Can I use drag and tap gestures to drive React UI animations?

Yes, you can use drag and tap gestures to drive React UI animations by attaching gesture recognizers to motion components, which automatically map pointer interactions to dynamic animation states.

What is the best way to compose reusable animation states in React?

The best way to compose reusable animation states in React is by defining variants, which are named animation objects that components can switch between dynamically to create complex sequences and orchestrate parent-child interactions.

How do layout animations work when React UI states change dynamically?

Layout animations automatically animate element position and size changes when React UI states update dynamically, smoothly transitioning elements between layout states without manual coordinate calculations.

What prerequisites do I need to animate scroll-driven interactions in a React app?

To animate scroll-driven interactions in a React app, you need an existing React project environment where you can install the motion library and import motion components to bind animation properties to scroll progress.