motion-react

Create declarative animations and interactive gestures in React with Motion.

567|82|Updated Mar 15, 2026
One-click install
npx skills add https://github.com/pedronauck/skills --skill motion-react-pedronauck
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: motion-react
Source: https://github.com/pedronauck/skills/tree/main/skills/motion-react
Command: npx skills add https://github.com/pedronauck/skills --skill motion-react-pedronauck

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill simplifies the creation of complex and engaging animations in React applications, making user interfaces more dynamic and interactive.

Core Features & Use Cases

  • Declarative Animations: Define animations using simple props like initial, animate, and transition.
  • Gestures & Interactions: Easily add hover, tap, and drag effects to UI elements.
  • Layout Animations: Animate layout changes smoothly, including shared element transitions.
  • Use Case: Add a subtle zoom and fade-in effect to images as they enter the viewport, or create a draggable component that snaps to a grid.

Quick Start

Use the motion-react skill to animate a div with opacity from 0 to 1 when it enters the viewport.

Frequently Asked Questions about motion-react

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

FAQPage Schema
How do I animate React components when they enter the viewport?

You can animate React components on viewport entry by defining declarative props like `initial` and `animate` to trigger opacity and scale transitions as elements become visible.

Can I add drag and tap gestures to React UI elements?

Yes, you can add drag and tap gestures to React UI elements by applying interactive gesture recognition props, allowing components to respond dynamically to hover, tap, and drag interactions.

What's the best way to animate layout changes in a React application?

The best way to animate layout changes in React is using layout animation features, which automatically smooth transitions when components reorder, resize, or move within the DOM structure.

How do I trigger exit animations in React when a component unmounts?

You trigger exit animations in React by wrapping conditional components with `AnimatePresence`, which ensures unmounting elements animate out smoothly before being removed from the layout.

Does Framer Motion support manipulating dynamic motion values for custom UI effects?

Yes, Framer Motion supports advanced motion value manipulation, allowing you to track velocity and dynamically update custom animation values to create highly interactive and responsive UI effects.

How do I create a declarative fade-in transition for a React div?

To create a declarative fade-in transition for a React div, use motion components and pass `initial` set to opacity 0 and `animate` set to opacity 1 with a defined transition duration.