leoyeai/openclaw-master-skills/web-animation-design
Claude Code and agent skill by leoyeai/openclaw-master-skills
- community
Checking that the SKILL.md file is still in the repository.
Design and implement web animations that feel natural and purposeful. Use this skill proactively whenever the user asks questions about animations, motion, easing, timing, duration, springs, transitions, or animation performance. This includes questions about how to animate specific UI elements, which easing to use, animation best practices, or accessibility considerations for motion. Triggers on: easing, ease-out, ease-in, ease-in-out, cubic-bezier, bounce, spring physics, keyframes, transform, opacity, fade, slide, scale, hover effects, microinteractions, Framer Motion, React Spring, GSAP, CSS transitions, entrance/exit animations, page transitions, stagger, will-change, GPU acceleration, prefers-reduced-motion, modal/dropdown/tooltip/popover/drawer animations, gesture animations, drag interactions, button press feel, feels janky, make it smooth.
Install
npx vskill@latest install leoyeai/openclaw-master-skills/web-animation-designSKILL.md
The same SKILL.md was published earlier as leoyeai/openclaw-master-skills/web-animation-design.
Web Animation Design
⚠️ Creative Pack — NOT auto-apply
This skill is part of the creative pack. Use when the task explicitly involves animation, motion, or interaction feel. Do NOT load this for general UI building — the motion reference in design-review covers baseline motion quality.
Use when: user asks about animations, easing, springs, transitions, interaction feel, or "make it smooth." Skip when: building standard UI where the motion reference in design-review is sufficient.
A comprehensive guide for creating animations that feel right, based on Emil Kowalski's "Animations on the Web" course.
Initial Response
When this skill is first invoked without a specific question, respond only with:
I'm ready to help you with animations based on Emil Kowalski's animations.dev course.
Do not provide any other information until the user asks a question.
Review Format (Required)
When reviewing animations, you MUST use a markdown table. Do NOT use a list with "Before:" and "After:" on separate lines. Always output an actual markdown table like this:
| Before | After | |
|---|---|---|
transform: scale(0) | transform: scale(0.95) | |
animation: fadeIn 400ms ease-in | animation: fadeIn 200ms ease-out | |
| No reduced motion support | @media (prefers-reduced-motion: reduce) {...} |
Wrong format (never do this):
Correct format: A single markdown table with | Before | After | columns, one row per issue.
Decision Tree: What Tool Do I Use?
Always check prefers-reduced-motion. No exceptions.
Quick Start
Every animation decision starts with these questions:
- Is this element entering or exiting? → Use
ease-out - Is an on-screen element moving? → Use
ease-in-out - Is this a hover/color transition? → Use
ease - Will users see this 100+ times daily? → Don't animate it
The Easing Blueprint
ease-out (Most Common)
Use for user-initiated interactions: dropdowns, modals, tooltips, any element entering or exiting the screen.
Why it works: Acceleration at the start creates an instant, responsive feeling. The element "jumps" toward its destination then settles in.
ease-in-out (For Movement)
Use when elements already on screen need to move or morph. Mimics natural motion like a car accelerating then braking.
ease (For Hover Effects)
Use for hover states and color transitions. The asymmetrical curve (faster start, slower end) feels elegant for gentle animations.
linear (Avoid in UI)
Only use for:
- Constant-speed animations (marquees, tickers)
- Time visualization (hold-to-delete progress indicators)
Linear feels robotic and unnatural for interactive elements.
ease-in (Almost Never)
Avoid for UI animations. Makes interfaces feel sluggish because the slow start delays visual feedback.
Paired Elements Rule
Elements that animate together must use the same easing and duration. Modal + overlay, tooltip + arrow, drawer + backdrop—if they move as a unit, they should feel like a unit.
Timing and Duration
Duration Guidelines
| Element Type | Duration | |
|---|---|---|
| Micro-interactions | 100-150ms | |
| Standard UI (tooltips, dropdowns) | 150-250ms | |
| Modals, drawers | 200-300ms |
Rules:
- UI animations should stay under 300ms
- Larger elements animate slower than smaller ones
- Exit animations can be ~20% faster than entrance
- Match duration to distance - longer travel = longer duration
The Frequency
Determine how often users will see the animation:
- 100+ times/day → No animation (or drastically reduced)
- Occasional use → Standard animation
- Rare/first-time → Can be more special
Example: Raycast never animates because users open it hundreds of times a day.
When to Animate
Do animate:
- Enter/exit transitions for spatial consistency
- State changes that benefit from visual continuity
- Responses to user actions (feedback)
- Rarely-used interactions where delight adds value
Don't animate:
- Keyboard-initiated actions
- Hover effects on frequently-used elements
- Anything users interact with 100+ times daily
- When speed matters more than smoothness
Marketing vs. Product:
- Marketing: More elaborate, longer durations allowed
- Product: Fast, purposeful, never frivolous
Spring Animations
Springs feel more natural because they don't have fixed durations—they simulate real physics.
When to Use Springs
- Drag interactions with momentum
- Elements that should feel "alive" (Dynamic Island)
- Gestures that can be interrupted mid-animation
- Organic, playful interfaces
Configuration
Apple's approach (recommended):
Traditional physics:
Bounce Guidelines
- Avoid bounce in most UI contexts
- Use bounce for drag-to-dismiss, playful interactions
- Keep bounce subtle (0.1-0.3) when used
Interruptibility
Springs maintain velocity when interrupted—CSS animations restart from zero. This makes springs ideal for gestures users might change mid-motion.
Layout Animations (Framer Motion)
The most powerful FM feature. Lets you animate properties CSS can't: flex-direction, justify-content, position changes.
The layout Prop
Add layout to any motion.* element to auto-animate layout changes:
When this element's size or position changes (due to state, content, siblings), FM animates it smoothly. No manual measurement needed.
Shared Layout Animations (layoutId)
Connect two separate elements so one morphs into the other:
Use cases: tab highlights, card → modal expansion, button → popover morph, trash interaction (images move between containers).
Creative trick: layoutId creates illusions. The feedback popover's "placeholder" is actually a <span> with a shared layoutId — not a real textarea placeholder. It morphs from button text to popover text.
Dynamic Height Animation
FM can't animate auto to auto. Use react-use-measure:
AnimatePresence (Deep)
Modes
"sync"(default) — enter and exit play simultaneously"wait"— exit completes before enter starts (copy/check icon swap)"popLayout"— removes exiting element from layout flow immediately (often the right choice for morphing UIs)
Direction-Aware Transitions
Use the custom prop to pass dynamic data to exiting components (whose state is stale):
Key Rules
- Always add
keyprop on animated elements inside AnimatePresence - Use
initial={false}to skip mount animation (icon swaps, button states) - Known bug: rapid switching can show both elements — pin to FM v11.0.10 if hit
Motion Values & Hooks
Motion values update outside React's render cycle — no re-renders, 60fps.
useMotionValue — Instant updates (gestures)
Use for: direct gesture tracking (drag distance → scale), any 1:1 mapping where spring lag would feel disconnected.
useSpring — Animated updates (follow-behind)
Use for: cursor followers, momentum effects, anything that should trail behind input.
useTransform — Map one value to another
Use for: scroll-linked effects, cursor-distance effects, value formatting.
useMotionTemplate — String interpolation with motion values
MotionConfig — Default transitions for a subtree
Orchestration (Stagger & Sequencing)
Staggered entrance animations create a wave effect. Trial and error until it feels right — no formula.
CSS stagger (no library):
FM stagger:
Rules:
- Keep delays small (30-80ms between items)
- Cap total sequence time — 10 items at 80ms each = 800ms, too slow
- Marketing pages can be more elaborate; product UI should be fast
Brand Expression Through Animation Speed
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/web-animation-design/SKILL.md
Popularity
- Repository stars
- 2,157
- Repository forks
- 324
- 7-day trend score
- 43
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/leoyeai/openclaw-master-skills/web-animation-design)