swapnilpopat/ai-assistant-skills/animation-principles
Claude Code and agent skill by swapnilpopat/ai-assistant-skills
- community
- ext:[{"type":"plugin","description":"Custom plugin integration"}]
Checking that the SKILL.md file is still in the repository.
Apply Disney's 12 animation principles to UI motion for purposeful, accessible, performant interactions across web and native (2026).
Install
npx vskill@latest install swapnilpopat/ai-assistant-skills/animation-principlesSemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
The same SKILL.md was published earlier as swapnilpopat/ai-assistant-skills/animation-principles.
Animation Principles
Motion is a UX language: it orients, guides attention, and confirms state — never decoration.
When to Use
- Designing or reviewing UI motion (transitions, micro-interactions, page changes).
- Choosing easing curves, durations, or stagger sequences for a design system.
- Auditing an interface that feels sluggish, jittery, or motion-sickness inducing.
- Implementing
prefers-reduced-motionfallbacks. - Choreographing entrance/exit of related elements (lists, modals, route changes).
Stack Baseline (2026)
| Concern | Tool / Standard | |
|---|---|---|
| Web declarative motion | CSS Animations Level 2, @starting-style, transition-behavior: allow-discrete | |
| Cross-document transitions | View Transitions API Level 2 (cross-document, MPA) | |
| JS motion (React) | Framer Motion 11+, Motion One | |
| Vector / character motion | Lottie (dotLottie 1.0), Rive runtimes | |
| Mobile guidance | Material 3 Motion, Apple HIG Motion | |
| Accessibility | prefers-reduced-motion, WCAG 2.2 SC 2.3.3 Animation from Interactions | |
| Performance | GPU compositor properties only (transform, opacity, filter) |
Prerequisites
- Design tokens for duration and easing exposed as CSS custom properties.
- A motion spec in the design system (durations, curves, stagger).
- Telemetry for jank (long animation frames) on critical surfaces.
Instructions
- Map purpose to principle. For each animation, name the Disney principle it borrows: anticipation (button press scales down before action), follow-through (toast slides in then settles), staging (only one element draws focus at a time), secondary action (icon rotates while parent expands). Squash & stretch is reserved for playful brands — clamp to 2–4% on UI.
- Pick a duration tier. Defaults: 100ms (micro: hover, focus), 150–250ms (in-page: tooltips, dropdowns), 250–300ms (modals, sheets), 400–500ms (full-screen route, choreography ceiling). Anything over 500ms must justify itself.
- Pick an easing curve. Enter:
cubic-bezier(0, 0, 0.2, 1)(decelerate). Exit:cubic-bezier(0.4, 0, 1, 1)(accelerate). Move:cubic-bezier(0.4, 0, 0.2, 1)(standard). Never uselinearexcept for indeterminate progress. - Author tokens, not magic numbers.
``css :root { --motion-duration-fast: 150ms; --motion-duration-base: 250ms; --motion-easing-standard: cubic-bezier(0.4, 0, 0.2, 1); --motion-easing-decelerate: cubic-bezier(0, 0, 0.2, 1); } .toast { animation: toast-in var(--motion-duration-base) var(--motion-easing-decelerate) both; } @keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } } ``
- Choreograph with stagger. Lead with the hero element; stagger siblings 30–50ms; cap total sequence ≤ 500ms. In Framer Motion 11:
``tsx const list = { animate: { transition: { staggerChildren: 0.04, delayChildren: 0.05 } } }; const item = { initial: { opacity: 0, y: 8 }, animate: { opacity: 1, y: 0, transition: { duration: 0.25, ease: [0.4, 0, 0.2, 1] } }, }; ``
- Use the View Transitions API for route/state changes instead of bespoke crossfades:
``js if (document.startViewTransition) { document.startViewTransition(() => updateDOM()); } else { updateDOM(); } ` Pair with view-transition-name` on shared elements for morph effects.
- Mandatory reduced-motion fallback. Replace movement with opacity, never disable feedback entirely:
``css @media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 1ms !important; transition-duration: 1ms !important; scroll-behavior: auto !important; } } ``
- Stay on the compositor. Animate only
transform,opacity,filter. Promote withwill-changeonly during the animation, then remove. Audit with DevTools Performance → "Frames" lane; target ≥ 60fps, no long animation frames > 50ms.
Common Pitfalls
| Pitfall | Why it hurts | Fix | |
|---|---|---|---|
Animating width, height, top, left | Triggers layout/paint every frame; jank on low-end devices | Use transform: scale/translate; reserve space with aspect-ratio | |
Using linear easing for UI motion | Feels mechanical, ignores physical intuition | Use decelerate for enter, accelerate for exit | |
| 600ms+ "hero" animations on common actions | Slows perceived speed; users wait on every click | Cap interactive motion at 300ms | |
Ignoring prefers-reduced-motion | WCAG 2.3.3 violation; triggers vestibular disorders | Provide opacity-only fallback | |
| Auto-playing parallax / large continuous motion | SC 2.2.2 violation if > 5s without pause | Add pause control or trigger on intent | |
will-change: transform left on idle elements | Permanent GPU layer, memory bloat | Add on :hover/state, remove on animationend |
Output Format
Deliver a motion spec containing: token table (duration + easing), per-component motion entries (trigger → property → duration → easing → reduced-motion variant), choreography diagram for multi-element sequences, and a performance budget (max 16ms paint per frame, no layout thrash).
Authoritative References
- https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_animations
- https://developer.mozilla.org/en-US/docs/Web/API/View_Transitions_API
- https://web.dev/articles/animations-guide
- https://m3.material.io/styles/motion/overview
- https://developer.apple.com/design/human-interface-guidelines/motion
- https://www.w3.org/WAI/WCAG22/Understanding/animation-from-interactions.html
- https://www.refactoringui.com/
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/designer/interaction-design/animation-principles/SKILL.md
Popularity
- Repository stars
- 1
- 7-day trend score
- 0
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Extension points
pluginCustom plugin integration
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/swapnilpopat/ai-assistant-skills/animation-principles)