motion

Implement complex React and Next.js UI animations with declarative motion APIs.

Updated May 6, 2026
One-click install
npx skills add https://github.com/Lyiu-10/pepwebis --skill motion-lyiu-10
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: motion
Source: https://github.com/Lyiu-10/pepwebis/tree/main/.agent/skills/motion
Command: npx skills add https://github.com/Lyiu-10/pepwebis --skill motion-lyiu-10

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill eliminates the steep learning curve and common pitfalls of building complex React animations, including gesture handling, scroll effects, layout transitions, and SSR compatibility issues, saving developers hours of debugging and manual implementation.

Core Features & Use Cases

  • Declarative Animation API: Create drag-and-drop interfaces, scroll-linked parallax effects, FLIP layout transitions, SVG path morphing, and exit animations for modals with minimal code.
  • Multi-Framework Integration: Pre-built, tested patterns for Next.js (App/Pages Router), Vite, and Cloudflare Workers, with fixes for known build and runtime issues.
  • Use Case: For example, build a sortable kanban board with drag-and-drop spring physics, scroll-triggered hero reveals, and shared element transitions between list and detail pages without writing custom animation logic.

Quick Start

Use the motion skill to add a scroll-triggered fade-in animation for your Next.js landing page hero section with reduced motion accessibility support.

Frequently Asked Questions about motion

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

FAQPage Schema
How do I build drag-and-drop interfaces with spring physics in React?

You can build drag-and-drop interfaces with spring physics using a declarative animation API, eliminating the need for manual low-level gesture handling logic. This approach supports sortable boards and interactive UI elements without writing custom physics code.

Does Framer Motion work with the Next.js App Router for scroll-linked parallax effects?

Yes, Framer Motion provides pre-built integration patterns for the Next.js App Router, enabling scroll-linked parallax effects seamlessly. It includes tested fixes for known SSR build and runtime compatibility issues.

What's the best way to create FLIP layout transitions for dynamic React content?

The best way to create FLIP layout transitions is through a declarative animation API that automatically calculates layout shifts. This handles shared element transitions between list and detail pages without manual position tracking.

How do I add SVG path morphing and exit animations to modals in a Vite project?

SVG path morphing and exit animations for modals are implemented declaratively in Vite projects using pre-built integration patterns. This allows dynamic content to animate smoothly on unmount without manual lifecycle event management.

Why do my React layout transitions break during server-side rendering on Cloudflare Workers?

React layout transitions often break during server-side rendering on Cloudflare Workers due to hydration mismatches. This Skill provides framework-specific integration patterns and troubleshooting steps to resolve these known build and runtime edge cases.

Can I implement accessible scroll-triggered hero reveals with reduced motion support in Next.js?

Yes, you can implement accessible scroll-triggered hero reveals with reduced motion support in Next.js. This approach includes built-in accessibility features to respect user motion preferences while maintaining performant scroll-linked animations.