motion

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

54|Updated Nov 19, 2025
One-click install
npx skills add https://github.com/dennislee928/Ethic-Latex --skill motion-dennislee928
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: motion
Source: https://github.com/dennislee928/Ethic-Latex/tree/main/.claude/skills/motion
Command: npx skills add https://github.com/dennislee928/Ethic-Latex --skill motion-dennislee928

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill simplifies the creation of complex, production-ready animations in React applications, overcoming common pitfalls and saving significant development time.

Core Features & Use Cases

  • Declarative Animations: Build sophisticated animations with minimal code using props like initial, animate, exit.
  • Gestures & Interactions: Implement drag-and-drop, hover effects, tap feedback, and more.
  • Scroll & Layout Animations: Create parallax effects, scroll-linked animations, and smooth shared element transitions.
  • Use Case: Build an e-commerce product page with a carousel that supports drag gestures, a modal that animates in smoothly, and a shared element transition when clicking from a product grid to the detail page.

Quick Start

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

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 with TypeScript?

You can create declarative React animations by using props like initial, animate, and exit on motion components. This approach allows you to build sophisticated entrance, exit, and state-change transitions with minimal code directly within your TypeScript application.

Does Framer Motion work with Next.js and Vite?

Yes, Framer Motion fully integrates with Next.js and Vite. It provides optimized bundle sizes and includes extensive troubleshooting guides to ensure smooth animation performance and compatibility across these development environments.

What's the best way to implement drag gestures and scroll-linked animations in React?

The best way to implement drag gestures and scroll-linked animations in React is using a declarative animation library. It supports drag-and-drop, hover effects, tap feedback, parallax, and scroll-linked transitions out of the box without complex manual event listeners.

How do I build shared layout transitions for an e-commerce product grid in React?

You can build shared layout transitions by leveraging declarative layout animation props. This allows smooth shared element transitions when users navigate from a product grid to a detail page, alongside animated modals and drag-supported carousels.

Why are my React layout transitions and gestures causing performance issues?

Performance issues in React layout transitions often stem from unoptimized bundle sizes or improper animation declarations. Using a library with built-in optimization and extensive troubleshooting guides helps resolve common gesture and scroll effect pitfalls efficiently.