Motion Patterns
Production-ready React and Next.js animation patterns for buttons, modals, toasts, stagger, page transitions, and scroll.
- CCM score
- 73 of 100
- skills.sh installs
- 9K
- GitHub stars
- 312.6K
- last updated
- Aug 21, 2026
Own this skill? Claim it
What it does
- Covers button feedback, modals, toast stacks, stagger lists, Next.js App Router page transitions, scroll reveals, and layout animation
- Includes copy-paste components with
AnimatePresenceexit handling andlayoutandlayoutIdexamples for expanding and crossfading elements - Enforces a stagger interval between 0.05s and 0.10s,
mode="wait"on page transitions, andviewport={{ once: true }}on scroll reveals - Designed for React and Next.js projects that already use
motion-foundationstokens and springs
Install
$ npx -y skills add affaan-m/ecc --skill motion-patterns -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
Files
Motion Patterns
Copy-paste patterns for the most common UI animation needs.
Every pattern here is built on motion-foundations tokens and springs.
Do not define new duration or easing values here — import them.
When to Activate
- Animating a button, card, modal, or toast notification
- Building list entrances with stagger
- Setting up page transitions in Next.js App Router
- Adding entrance or exit animations to conditional content
- Implementing scroll-reveal, scroll-linked progress, or sticky story sections
- Building expanding cards, accordions, or shared-element transitions
Outputs
This skill produces:
- Accessible, SSR-safe animation for all standard UI components
AnimatePresence-wrapped conditional renders with correct exit behavior- Page transition wrapper component for Next.js App Router
- Scroll-reveal and scroll-linked patterns using
useScroll+useTransform - Layout animation patterns (
layout,layoutId) for expanding and crossfading elements
Principles
Details
- Repository
- github.com/affaan-m/ecc
- Categories
- Animation & Motion, Frontend & UI Code
- First seen
- Jul 14, 2026
Questions
What does the motion-patterns skill do for React and Next.js apps?
The motion-patterns skill gives copy-paste animation patterns for React and Next.js, covering buttons, modals, toasts, stagger lists, page transitions, exit animations, scroll reveals and layout animations. Every pattern draws its duration, easing and spring values from motion-foundations tokens rather than raw numbers.
When should an agent use motion-patterns instead of writing animation code from scratch?
Use it when animating a specific UI element in React or Next.js, such as a button, modal, toast, stagger list, page transition or scroll reveal. The skill includes rules like wrapping conditional renders in AnimatePresence with a key and keeping modals accessible with a focus trap, Escape close and role dialog attributes.
How do I install the motion-patterns skill?
Run npx -y skills add affaan-m/ecc --skill motion-patterns -y inside your project. Once installed, the agent can apply the button, modal, stagger and page transition patterns to your React or Next.js components.
Does motion-patterns depend on motion-foundations?
Yes, every pattern in motion-patterns imports its tokens and springs from motion-foundations, and the skill tells the agent not to define new duration or easing values itself. You need the motion-foundations tokens available in your project, such as the lib motion-tokens file the examples import from.
More from affaan-m/ecc
All 257- Motion Foundations9K
- Motion Advanced8.9K
- Ecc Guide8.9K
- Mle Workflow8.9K
- Django Celery8.8K
- Homelab Network Setup8.8K
- Ios Icon Gen8.8K
- Agentic Os8.8K
- Skill Stocktake8.8K
- Ui To Vue8.8K
- Network Interface Health8.7K
- Homelab Wireguard Vpn8.7K
- Netmiko Ssh Automation8.7K
- Homelab Network Readiness8.7K
- Cisco Ios Patterns8.7K
- Plan Orchestrate8.7K
- Angular Developer8.7K
- Network Config Validation8.7K
- Quarkus Patterns8.7K
- Skill Scout8.6K
- Cost Tracking8.6K
- Network Bgp Diagnostics8.6K
- Flox Environments8.6K
- Homelab Vlan Segmentation8.6K
Similar to Motion Patterns
More Animation & Motionmotion-design-patternsdylanfeltus/skills171 installsFramer Motion patterns for React, covering springs, staggers, layout, exit, scroll, and page transitions.
framer-motion-animatorpatricio0312rev/skills11.8K installsDeclarative Framer Motion patterns for entrance, exit, gesture, page, and scroll animations in React.
motion-advancedaffaan-m/ecc8.9K installsAdvanced Motion patterns for React and Next.js covering drag, gestures, text, SVG, and imperative sequences.
animation-designerdaffy0208/ai-dev-standards1.9K installsFramer Motion and CSS animation patterns for page transitions, scroll effects, micro-interactions, and loading states.