motion

Create declarative animations in React with gestures, layout transitions, and SVG effects.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) and templates (resource) components.

What problem does it solve?

This Skill simplifies the creation of complex, performant animations in React applications, eliminating the need for manual DOM manipulation or complex CSS.

Core Features & Use Cases

  • Declarative Animations: Define animations using props like initial, animate, exit.
  • Gestures & Interactions: Implement drag, hover, tap, and other gestures.
  • Layout & Shared Element Transitions: Animate layout changes and transitions between components.
  • Use Case: Build interactive UIs like carousels, modals, drag-and-drop interfaces, and engaging landing page scroll effects.

Quick Start

Use the motion skill to animate a div with fade-in and slide-up effects.

Frequently Asked Questions about motion

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

FAQPage Schema
How do I create declarative animations in React without complex CSS?

Declarative animations in React are created by passing props like `initial`, `animate`, and `exit` to components, eliminating manual DOM manipulation. This approach simplifies defining complex transitions directly within your component hierarchy.

Can I animate layout transitions and shared elements in React applications?

Yes, you can animate layout transitions and shared elements in React applications automatically. The API handles animating changes when components resize or move, enabling smooth visual continuity between different UI states.

Does this React animation approach work with Next.js and Vite?

Yes, this React animation approach integrates seamlessly with frameworks like Next.js and Vite. It is optimized to work within these environments while maintaining performance and minimizing bundle size using features like LazyMotion.

What is the best way to handle drag and drop interactions in a React UI?

The best way to handle drag interactions in a React UI is using a declarative API for gestures. It allows you to easily implement drag, hover, and tap effects, enabling complex interfaces like carousels and modals without manual event handling.

How do scroll-linked effects work in frontend React applications?

Scroll-linked effects in frontend React applications work by binding animation values to the scroll position. This declarative method allows you to build engaging landing page effects smoothly tied to user scrolling behavior.

How can I optimize React animation bundle size for better performance?

Optimize React animation bundle size using features like LazyMotion and hardware-accelerated animations. These features ensure animations remain performant by reducing the initial load and leveraging the device's GPU for rendering.