phazurlabs/chef-sumi/animation-recipe-library
Claude Code and agent skill by phazurlabs/chef-sumi
- community
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-librarySKILL.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.
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.
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.
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)
| Animation | Duration | Use Case | |
|---|---|---|---|
| Button hover | 120ms | Background color shift | |
| Active press | 80ms | Scale down feedback | |
| Toggle switch | 150ms | Slide knob position | |
| Checkbox check | 150ms | Draw checkmark | |
| Radio select | 120ms | Fill indicator | |
| Input focus | 150ms | Border color + label float | |
| Tooltip show | 100ms | Fade in near cursor | |
| Ripple start | 150ms | Material ripple expand | |
| Color change | 100ms | Any color transition | |
| Opacity toggle | 100ms | Show/hide without motion | |
| Icon swap | 120ms | Hamburger to X morph | |
| Badge pulse | 150ms | Notification attention | |
| Switch label | 100ms | Text swap in toggle | |
| Cursor change | 0ms | Instant, never animate cursors | |
| Link underline | 150ms | Underline slide in |
Standard Animations (200-400ms)
| Animation | Duration | Use Case | |
|---|---|---|---|
| Modal open | 250ms | Scale + fade from center | |
| Dropdown expand | 200ms | Menu list reveal | |
| Card expand | 300ms | Detail view expansion | |
| Toast appear | 250ms | Slide in from edge | |
| Sidebar toggle | 250ms | Slide panel in/out | |
| Tab content switch | 200ms | Cross-fade tab panels | |
| Accordion expand | 250ms | Height reveal | |
| FAB action | 200ms | Speed dial expand | |
| Snackbar enter | 250ms | Slide up from bottom | |
| Drawer open | 300ms | Full-height side panel | |
| Chip add/remove | 200ms | Scale + fade | |
| Menu item hover | 200ms | Background highlight slide | |
| Avatar group expand | 300ms | Spread stacked avatars | |
| Card flip | 350ms | 3D rotation reveal | |
| Popover | 200ms | Positioned overlay appear |
Complex Animations (400-700ms)
| Animation | Duration | Use Case | |
|---|---|---|---|
| Page transition | 400ms | Route change crossfade | |
| Shared element | 500ms | Element morph between pages | |
| Hero section reveal | 600ms | Landing page first paint | |
| List stagger (full) | 400-600ms total | N items with stagger delay | |
| Dashboard widget load | 500ms | Chart + card entrance | |
| Onboarding step | 500ms | Guided tour transitions | |
| Image gallery open | 400ms | Lightbox zoom from thumb | |
| Morphing layout | 500ms | Grid to list view change | |
| Skeleton to content | 400ms | Loading state resolution | |
| Full-screen overlay | 450ms | Immersive view enter |
Dramatic Animations (700ms+)
| Animation | Duration | Use Case | |
|---|---|---|---|
| Splash screen | 800-1200ms | App launch branding | |
| Success celebration | 800ms | Confetti, checkmark draw | |
| Onboarding carousel | 700ms | Slide between intro screens | |
| Data visualization | 1000ms | Chart draw-in, count-up | |
| Parallax hero | continuous | Scroll-linked background | |
| Logo animation | 1000-2000ms | Brand reveal on load | |
| Progress completion | 800ms | Circular progress fill to 100% | |
| Typewriter text | 50ms/char | Sequential character reveal |
Part 3: Easing Library
Production Easing Custom Properties
Framer Motion Spring Presets
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
- SKILL.md in the repositoryCheckingskills/animation-recipe-library/SKILL.md
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
[](https://verified-skill.com/skills/phazurlabs/chef-sumi/animation-recipe-library)