phazurlabs/chef-sumi/animation-recipe-library

Claude Code and agent skill by phazurlabs/chef-sumi

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

200+ production-ready animation recipes with exact CSS/Framer Motion/GSAP code. Covers entrance/exit animations, micro-interactions, page transitions, loading states, scroll-driven animations, spring physics, and reduced motion alternatives. Every recipe includes timing, easing, and copy-paste code. Use when the user mentions: animation, transition, motion, micro-interaction, page transition, entrance animation, exit animation, loading animation, skeleton animation, scroll animation, spring animation, easing, keyframe, framer motion, CSS animation, hover effect, click animation, motion design, GSAP, ScrollTrigger, SplitText, Lenis, smooth scroll, pin and scrub, parallax, horizontal scroll, cursor effect, magnetic button, custom cursor, cursor follower, text animation, typewriter, gradient text, 3D, card tilt, card flip, floating, glassmorphism, noise grain, particle, React Three Fiber, R3F, three.js, counter animation, marquee, ticker, SVG morph, stagger, spotlight.

Install

npx vskill@latest install phazurlabs/chef-sumi/animation-recipe-library

SKILL.md

The same SKILL.md was published earlier as phazurlabs/chef-sumi/animation-recipe-library.

Animation Recipe Library — 200+ Production Recipes

Part 1: Animation Principles for UI

Disney's 12 Principles Applied to Interface Design

The 12 principles of animation, originally codified by Frank Thomas and Ollie Johnston for Disney, translate directly into UI motion design. Each principle below maps to concrete interface behavior.

1. Squash and Stretch

Objects compress on impact and elongate in motion. In UI: buttons compress slightly on press (scaleY(0.95)), modals stretch subtly as they spring open.

css
.button:active {
transform: scaleX(1.02) scaleY(0.96);
transition: transform 80ms cubic-bezier(0.34, 1.56, 0.64, 1);
}
2. Anticipation

A small preparatory movement before the main action. In UI: a button dips slightly before launching a navigation, a card lifts before being dragged.

css
.card-draggable:active {
transform: translateY(-2px) scale(1.02);
box-shadow: 0 8px 24px rgba(0,0,0,0.15);
transition: all 120ms ease-out;
}
3. Staging

Direct attention to what matters. In UI: dim the background when a modal appears, highlight the changed element after a save operation.

4. Straight Ahead vs. Pose to Pose

CSS keyframes = pose-to-pose (define key states). JavaScript requestAnimationFrame = straight-ahead (frame-by-frame). For UI, pose-to-pose via keyframes is almost always correct.

5. Follow Through and Overlapping Action

Elements don't all stop at the same time. In UI: when a panel slides in, its children arrive slightly after with staggered delays.

css
.panel-child:nth-child(1) { animation-delay: 0ms; }
.panel-child:nth-child(2) { animation-delay: 50ms; }
.panel-child:nth-child(3) { animation-delay: 100ms; }
6. Slow In and Slow Out (Ease)

Never use linear timing for UI motion. Objects accelerate and decelerate naturally.

7. Arc

Natural motion follows curves, not straight lines. For UI: elements moving across screen should follow slight arcs, not rigid horizontal/vertical paths.

8. Secondary Action

Supporting animations reinforce the primary action. A success checkmark draws while a green background fades in behind it.

9. Timing

The single most critical principle for UI. See Duration Guidelines below.

10. Exaggeration

Amplify for clarity, not realism. A notification badge bounces more than physics would dictate to ensure it's noticed.

11. Solid Drawing (Solid Design)

Maintain spatial consistency. If a card expands from the top-left, it should collapse back to the top-left.

12. Appeal

Animation should feel pleasant, not mechanical. Spring physics with slight overshoot feels more alive than rigid easing.

Timing Theory

Human perception thresholds that govern animation timing:

  • 0-100ms: Perceived as instant. Use for color changes, opacity toggles, active states.
  • 100-300ms: Perceived as fast but visible. Ideal for most UI transitions.
  • 300-500ms: Perceived as deliberate. Use for large layout changes, page transitions.
  • 500ms+: Perceived as slow. Only for dramatic reveals, onboarding, hero animations.
  • 1000ms+: Feels broken unless there's a visual progress indicator.

Jakob's Law of Animation: Users spend most of their time on other sites. Match common animation patterns and durations. Don't be creative with timing unless you have a reason.

Doherty Threshold: System responses under 400ms keep users in a flow state. Your animations must finish within this window for interactive elements.

Easing Mathematics

All easing curves are cubic Bezier functions defined by 4 control points: cubic-bezier(x1, y1, x2, y2) where P0=(0,0) and P3=(1,1) are fixed.

The formula: B(t) = (1-t)^3*P0 + 3*(1-t)^2*t*P1 + 3*(1-t)*t^2*P2 + t^3*P3 for t in [0,1].

Spring physics use a different model: damped harmonic oscillation. Spring equation: x(t) = A * e^(-zeta * omega * t) * cos(omega_d * t + phi) where zeta = damping ratio, omega = natural frequency.


Part 2: Duration Guidelines

Micro Animations (100-200ms)
AnimationDurationUse Case
Button hover120msBackground color shift
Active press80msScale down feedback
Toggle switch150msSlide knob position
Checkbox check150msDraw checkmark
Radio select120msFill indicator
Input focus150msBorder color + label float
Tooltip show100msFade in near cursor
Ripple start150msMaterial ripple expand
Color change100msAny color transition
Opacity toggle100msShow/hide without motion
Icon swap120msHamburger to X morph
Badge pulse150msNotification attention
Switch label100msText swap in toggle
Cursor change0msInstant, never animate cursors
Link underline150msUnderline slide in
Standard Animations (200-400ms)
AnimationDurationUse Case
Modal open250msScale + fade from center
Dropdown expand200msMenu list reveal
Card expand300msDetail view expansion
Toast appear250msSlide in from edge
Sidebar toggle250msSlide panel in/out
Tab content switch200msCross-fade tab panels
Accordion expand250msHeight reveal
FAB action200msSpeed dial expand
Snackbar enter250msSlide up from bottom
Drawer open300msFull-height side panel
Chip add/remove200msScale + fade
Menu item hover200msBackground highlight slide
Avatar group expand300msSpread stacked avatars
Card flip350ms3D rotation reveal
Popover200msPositioned overlay appear
Complex Animations (400-700ms)
AnimationDurationUse Case
Page transition400msRoute change crossfade
Shared element500msElement morph between pages
Hero section reveal600msLanding page first paint
List stagger (full)400-600ms totalN items with stagger delay
Dashboard widget load500msChart + card entrance
Onboarding step500msGuided tour transitions
Image gallery open400msLightbox zoom from thumb
Morphing layout500msGrid to list view change
Skeleton to content400msLoading state resolution
Full-screen overlay450msImmersive view enter
Dramatic Animations (700ms+)
AnimationDurationUse Case
Splash screen800-1200msApp launch branding
Success celebration800msConfetti, checkmark draw
Onboarding carousel700msSlide between intro screens
Data visualization1000msChart draw-in, count-up
Parallax herocontinuousScroll-linked background
Logo animation1000-2000msBrand reveal on load
Progress completion800msCircular progress fill to 100%
Typewriter text50ms/charSequential character reveal

Part 3: Easing Library

Production Easing Custom Properties
css
:root {
/* === Core Easings === */
--ease-out: cubic-bezier(0.16, 1, 0.3, 1); /* Decelerate — entrances */
--ease-out-soft: cubic-bezier(0.33, 1, 0.68, 1); /* Gentle decelerate */
--ease-out-quad: cubic-bezier(0.25, 0.46, 0.45, 0.94); /* Quadratic decelerate */
--ease-out-cubic: cubic-bezier(0.22, 0.61, 0.36, 1); /* Cubic decelerate */
--ease-out-quart: cubic-bezier(0.17, 0.84, 0.44, 1); /* Quartic decelerate */
--ease-out-quint: cubic-bezier(0.23, 1, 0.32, 1); /* Quintic decelerate */
--ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1); /* Exponential decelerate */
--ease-out-circ: cubic-bezier(0.08, 0.82, 0.17, 1); /* Circular decelerate */
--ease-out-back: cubic-bezier(0.34, 1.56, 0.64, 1); /* Overshoot decelerate */
--ease-in: cubic-bezier(0.55, 0.055, 0.675, 0.19);/* Accelerate — exits */
--ease-in-soft: cubic-bezier(0.32, 0, 0.67, 0); /* Gentle accelerate */
--ease-in-quad: cubic-bezier(0.55, 0.085, 0.68, 0.53); /* Quadratic accelerate */
--ease-in-cubic: cubic-bezier(0.55, 0.055, 0.675, 0.19);/* Cubic accelerate */
--ease-in-quart: cubic-bezier(0.9, 0.03, 0.69, 0.22); /* Quartic accelerate */
--ease-in-expo: cubic-bezier(0.7, 0, 0.84, 0); /* Exponential accelerate */
--ease-in-back: cubic-bezier(0.36, 0, 0.66, -0.56); /* Pull-back accelerate */
--ease-in-out: cubic-bezier(0.87, 0, 0.13, 1); /* Symmetric — movement */
--ease-in-out-soft: cubic-bezier(0.45, 0, 0.55, 1); /* Gentle symmetric */
--ease-in-out-quad: cubic-bezier(0.46, 0.03, 0.52, 0.96); /* Quadratic symmetric */
--ease-in-out-cubic: cubic-bezier(0.65, 0, 0.35, 1); /* Cubic symmetric */
--ease-in-out-back: cubic-bezier(0.68, -0.6, 0.32, 1.6); /* Overshoot symmetric */
/* === Spring Physics (CSS approximations) === */
--spring-gentle: cubic-bezier(0.34, 1.56, 0.64, 1); /* stiffness:120 damping:14 */
--spring-bouncy: cubic-bezier(0.68, -0.55, 0.27, 1.55); /* stiffness:180 damping:12 */
--spring-snappy: cubic-bezier(0.25, 1.5, 0.5, 1); /* stiffness:300 damping:20 */
--spring-wobbly: cubic-bezier(0.36, 1.7, 0.5, 0.9); /* stiffness:150 damping:8 */
--spring-stiff: cubic-bezier(0.12, 1.2, 0.4, 1); /* stiffness:400 damping:30 */
--spring-slow: cubic-bezier(0.34, 1.3, 0.64, 1); /* stiffness:80 damping:20 */
/* === Bounce === */
--bounce: cubic-bezier(0.34, 1.56, 0.64, 1); /* Single overshoot bounce */
--bounce-heavy: cubic-bezier(0.68, -0.55, 0.27, 1.55); /* Double overshoot */
/* === Elastic (requires @keyframes for true elastic) === */
--elastic-out: cubic-bezier(0.36, 1.7, 0.5, 0.85); /* Approximation of elastic */
/* === Emphasis === */
--emphasis-dramatic: cubic-bezier(0.04, 0.62, 0.23, 0.98);
--emphasis-energetic: cubic-bezier(0.22, 0.68, 0, 1.71);
/* === Platform-Specific === */
--ios-spring: cubic-bezier(0.25, 0.8, 0.25, 1); /* iOS default animation */
--material-standard: cubic-bezier(0.2, 0, 0, 1); /* M3 standard easing */
--material-decel: cubic-bezier(0, 0, 0, 1); /* M3 decelerate */
--material-accel: cubic-bezier(0.3, 0, 1, 1); /* M3 accelerate */
--material-emphasized: cubic-bezier(0.2, 0, 0, 1); /* M3 emphasized */
}
Framer Motion Spring Presets
tsx
// Gentle — modals, overlays, panels
const springGentle = { type: "spring", stiffness: 120, damping: 14, mass: 1 };
// Bouncy — playful UI, notifications, FABs
const springBouncy = { type: "spring", stiffness: 180, damping: 12, mass: 1 };
// Snappy — toggles, switches, small elements
const springSnappy = { type: "spring", stiffness: 300, damping: 20, mass: 0.8 };
// Wobbly — emphasis, celebrations, attention-grab
const springWobbly = { type: "spring", stiffness: 150, damping: 8, mass: 1 };
// Stiff — precise, utility, no-nonsense
const springStiff = { type: "spring", stiffness: 400, damping: 30, mass: 1 };
// Slow — large-area reveals, page transitions
const springSlow = { type: "spring", stiffness: 80, damping: 20, mass: 1.2 };
// iOS-like — platform-matching for hybrid apps
const springIOS = { type: "spring", stiffness: 200, damping: 22, mass: 1 };
// Material-like — for M3 matching
const springMaterial = { type: "spring", stiffness: 250, damping: 25, mass: 1 };
When to Use Each Easing

This is the start of the file. Read the full SKILL.md on GitHub.

Security

  • Security scanPassed, 95 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
2
7-day trend score
5

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

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/phazurlabs/chef-sumi/animation-recipe-library/badge)](https://verified-skill.com/skills/phazurlabs/chef-sumi/animation-recipe-library)

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