
Motion Patterns
Copy-paste animation patterns for React that actually work in production. Covers the stuff you build every week: button states, modals, toasts, page transitions, stagger lists, scroll reveals, and layout animations. Everything is built on motion-foundations tokens, so you're not guessing at durations or defining magic numbers inline. The patterns enforce the AnimatePresence contract properly (key, exit, the whole thing), include accessibility requirements for modals, and come with decision tables for layout vs layoutId and when to use wait vs sync modes. If you're tired of rewriting the same Framer Motion boilerplate and getting exit animations wrong, this gets you there faster.
- skills.sh installs
- 1.6K
- GitHub stars
- 229.1K
- last updated
- Jul 14, 2026
Install
$ npx -y skills add affaan-m/everything-claude-code --skill motion-patterns --agent claude-codeInstalls into .claude/skills of the current project.
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
Sponsors
Details
- Repository
- github.com/affaan-m/everything-claude-code
- Category
- Design & UI/UX
- First seen
- Jun 3, 2026
More from affaan-m/everything-claude-code
All 256- Quarkus Patterns1.6K
- Quarkus Security1.6K
- Quarkus Tdd1.6K
- Quarkus Verification1.6K
- Skill Scout1.6K
- Uspto Database1.6K
- Prisma Patterns1.4K
- Blender Motion State Inspection1.3K
- Recsys Pipeline Architect1.3K
- Uncloud1.2K
- React Testing910
- React Performance903
- React Patterns893
- Frontend A11y870
- Marketing Campaign827
- Benchmark Optimization Loop826
- Latency Critical Systems818
- Parallel Execution Optimizer813
- Social Publisher806
- Data Throughput Accelerator805
- Prediction Market Risk Review801
- Recursive Decision Ledger801
- Prediction Market Oracle Research796
- Ito Basket Compare794