phazurlabs/sumi/animation-recipe-library
Claude Code and agent skill by phazurlabs/sumi
- community
Checking that the SKILL.md file is still in the repository.
200+ copy-paste animation recipes in CSS, Framer Motion, and GSAP: entrances, micro-interactions, page transitions, scroll-driven effects, spring physics, and cursor and text effects, each with timing, easing, and a reduced-motion fallback. Use when you need working motion code rather than motion principles.
Install
npx vskill@latest install phazurlabs/sumi/animation-recipe-librarySKILL.md
The same SKILL.md was published earlier as phazurlabs/sumi/animation-recipe-library.
Animation Recipe Library
Mental model
Motion is a sentence about causality: this happened because that happened. Animation that does not explain a relationship is decoration, and decoration is the first thing that reads as amateur.
- Duration follows distance and size. A 200px slide is not a 20px nudge.
150-200ms for small state changes, 250-350ms for entrances, 400-500ms for anything crossing the viewport. Over 500ms and the interface feels slow no matter how pretty the curve.
- Ease out for entrances, ease in for exits. Things arriving decelerate;
things leaving accelerate away. Linear is for progress bars and nothing else.
- Animate transform and opacity. They are composited. Width, height, top,
left and box-shadow are painted, and animating them drops frames on the devices least able to afford it.
- Reduced motion is not optional. WCAG 2.1 SC 2.3.3, and a vestibular
trigger for real people. Every recipe here ships a fallback.
Spring physics beats a bezier when the motion should feel physical -- drags, sheets, anything the user is directly manipulating. Bezier beats spring when timing must be predictable.
Constants
Every recipe in every reference file writes against these. Without them in context the references are unusable.
Framer Motion Spring Presets
When to Use Each Easing
| Easing | Use For | Avoid For | |
|---|---|---|---|
| ease-out | Entrances, appearing elements | Exits, disappearing elements | |
| ease-in | Exits, disappearing elements | Entrances (feels sluggish) | |
| ease-in-out | Position changes, slides between states | Quick micro-interactions | |
| ease-out-back | Playful entrances, bouncing buttons | Serious/enterprise UI | |
| spring (gentle) | Modals, sheets, overlays | Rapid repeated actions | |
| spring (snappy) | Toggles, switches, small controls | Large page transitions | |
| spring (bouncy) | Notifications, celebrations | Data-heavy interfaces | |
| linear | Progress bars, continuous rotation only | Everything else |
The reduced-motion floor, which every recipe assumes is already in the sheet:
@media (prefers-reduced-motion: reduce) { , ::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; } }
Index
| Want | Category | Reference | |
|---|---|---|---|
| Fade, scale, slide, blur, drop in | Entrance (25) | css-animation-recipes.md | |
| Fade, scale, slide, collapse out | Exit (18) | css-animation-recipes.md | |
| Spinner, skeleton shimmer, progress, dots | Loading (16) | css-animation-recipes.md | |
| Button press, toggle, hover lift, focus ring | Micro-interaction (35) | micro-interaction-recipes.md | |
| Route change, shared element, container morph | Page transition (18) | page-transition-recipes.md | |
| List reorder, grid reflow, accordion | Layout (12) | page-transition-recipes.md | |
| Reveal on scroll, parallax, sticky progress | Scroll-driven (16) | scroll-gesture-recipes.md | |
| Swipe, drag, pull-to-refresh, long press | Gesture (12) | scroll-gesture-recipes.md | |
| Stagger, sequence, orchestrated groups | Orchestration | framer-motion-recipes.md | |
| Framer Motion variants and layout prop | — | framer-motion-recipes.md | |
| Pin, scrub, horizontal scroll, SplitText | GSAP / ScrollTrigger | gsap-scrolltrigger-recipes.md | |
| Custom cursor, magnetic button, text effects, 3D | — | cursor-text-3d-effects.md | |
| More than two visual states | State machines | animation-state-machines.md |
Reference architecture
| File | Covers | Lines | |
|---|---|---|---|
references/gsap-scrolltrigger-recipes.md | GSAP, ScrollTrigger, Lenis | 1897 | |
references/cursor-text-3d-effects.md | cursor, text, R3F, particles | 1394 | |
references/css-animation-recipes.md | entrance, exit, loading in CSS | 1325 | |
references/scroll-gesture-recipes.md | scroll-driven and gesture | 1292 | |
references/framer-motion-recipes.md | Framer Motion + orchestration | 965 | |
references/micro-interaction-recipes.md | 35 micro-interactions | 400 | |
references/page-transition-recipes.md | page and layout transitions | 323 | |
references/animation-state-machines.md | multi-state animation | 73 |
What every reference file contains
- The recipe name and what it is for in one line
- Complete, runnable CSS or JSX -- no placeholders
- Exact duration and easing, using the tokens above
- The reduced-motion fallback for that specific recipe
- What it costs: composited, painted, or layout-triggering
- When to reach for a different recipe instead
Performance
Composited properties are transform, opacity, and filter. Everything else repaints. will-change is a promise you pay for whether or not you keep it -- set it immediately before the animation and remove it after, never in a stylesheet at rest. Sixty frames per second is 16.7ms per frame including everything else on the page.
Routing
For CSS entrances, exits and loading states: read references/css-animation-recipes.md.
For the small responses that make an interface feel alive -- presses, toggles, hovers, focus, drag affordances: read references/micro-interaction-recipes.md.
For moving between screens -- route changes, shared-element morphs, list reordering: read references/page-transition-recipes.md.
For scroll and touch -- reveal, parallax, sticky progress, swipe, drag, pull-to-refresh: read references/scroll-gesture-recipes.md.
For Framer Motion -- variants, the layout prop, stagger and orchestration: read references/framer-motion-recipes.md.
For GSAP -- pin and scrub, horizontal scroll, SplitText, Lenis smooth scroll: read references/gsap-scrolltrigger-recipes.md.
For the showy stuff -- custom cursors, magnetic buttons, text effects, React Three Fiber, particles: read references/cursor-text-3d-effects.md.
For anything with more than two visual states: read references/animation-state-machines.md.
For why a motion should exist at all -- Disney's twelve principles translated into interface terms: read references/motion-principles.md.
Cross-References
interaction-motion-design-- the principles behind these recipes; read that
when deciding whether to animate, this when deciding how
performance-states-patterns-- loading and skeleton states as UX, not motionaccessibility-inclusive-design-- the full reduced-motion and vestibular storyshadow-elevation-density-- animating elevation specifically
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
- 7-day trend score
- 5
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/sumi/animation-recipe-library)