swapnilpopat/ai-assistant-skills/animation-principles

Claude Code and agent skill by swapnilpopat/ai-assistant-skills

Trust tier 3
  • community
  • ext:[{"type":"plugin","description":"Custom plugin integration"}]
Source check pending

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-principles

Semi-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-motion fallbacks.
  • Choreographing entrance/exit of related elements (lists, modals, route changes).

Stack Baseline (2026)

ConcernTool / Standard
Web declarative motionCSS Animations Level 2, @starting-style, transition-behavior: allow-discrete
Cross-document transitionsView Transitions API Level 2 (cross-document, MPA)
JS motion (React)Framer Motion 11+, Motion One
Vector / character motionLottie (dotLottie 1.0), Rive runtimes
Mobile guidanceMaterial 3 Motion, Apple HIG Motion
Accessibilityprefers-reduced-motion, WCAG 2.2 SC 2.3.3 Animation from Interactions
PerformanceGPU 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

  1. 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.
  2. 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.
  3. 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 use linear except for indeterminate progress.
  4. 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); } } ``

  1. 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] } }, }; ``

  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.

  1. 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; } } ``

  1. Stay on the compositor. Animate only transform, opacity, filter. Promote with will-change only during the animation, then remove. Audit with DevTools Performance → "Frames" lane; target ≥ 60fps, no long animation frames > 50ms.

Common Pitfalls

PitfallWhy it hurtsFix
Animating width, height, top, leftTriggers layout/paint every frame; jank on low-end devicesUse transform: scale/translate; reserve space with aspect-ratio
Using linear easing for UI motionFeels mechanical, ignores physical intuitionUse decelerate for enter, accelerate for exit
600ms+ "hero" animations on common actionsSlows perceived speed; users wait on every clickCap interactive motion at 300ms
Ignoring prefers-reduced-motionWCAG 2.3.3 violation; triggers vestibular disordersProvide opacity-only fallback
Auto-playing parallax / large continuous motionSC 2.2.2 violation if > 5s without pauseAdd pause control or trigger on intent
will-change: transform left on idle elementsPermanent GPU layer, memory bloatAdd 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

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
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/swapnilpopat/ai-assistant-skills/animation-principles/badge)](https://verified-skill.com/skills/swapnilpopat/ai-assistant-skills/animation-principles)

Something wrong with this skill or its page? Tell us.