ui-animation

mblode/agent-skills · updated Jun 3, 2026

MDX-style export adds YAML metadata + attribution linking explainx.ai and this canonical listing URL.

$npx skills add https://github.com/mblode/agent-skills --skill ui-animation
0 commentsdiscussion
summary

Design, implement, and review UI animations with accessibility and performance best practices.

  • Covers CSS transitions, keyframes, Framer Motion, and spring animations with guidance on easing curves, timing (200–300ms standard), and transform-based motion
  • Enforces prefers-reduced-motion support, touch-device hover handling, and keyboard interaction rules to ensure accessible motion
  • Provides anti-patterns to avoid: transition: all , layout property animation, permanent will-change , an
skill.md

UI Animation

Reference files

File Read when
references/decision-framework.md Default: animation decisions, easing, and duration
references/spring-animations.md Using spring physics, framer-motion useSpring, configuring spring params
references/component-patterns.md Building buttons, popovers, tooltips, drawers, modals, toasts with animation
references/clip-path-techniques.md Using clip-path for reveals, tabs, hold-to-delete, comparison sliders
references/gesture-drag.md Implementing drag, swipe-to-dismiss, momentum, pointer capture
references/performance-deep-dive.md Debugging jank, CSS vs JS, WAAPI, CSS variables trap, Framer Motion caveats
references/review-format.md Reviewing animation code — Before/After/Why table and issue checklist
references/contextual-animations.md Implementing contextual icon swaps, word-level stagger entrances, or fixed-offset exit animations

Core rules

  • Animate for feedback, orientation, continuity, or deliberate delight.
  • Never animate keyboard-initiated actions (shortcuts, arrow navigation, tab/focus).
  • Prefer CSS transitions for interruptible UI; use keyframes only for predetermined sequences.
  • CSS transitions > WAAPI > CSS keyframes > JS (requestAnimationFrame).
  • Make animations interruptible and input-driven.
  • Asymmetric timing: enter can be slightly slower; exit should be fast.
  • Use @starting-style for DOM entry animations; fall back to data-mounted.
  • A small filter: blur(2px) can hide rough crossfades.

Motion design principles

  • Continuity over teleportation. Elements visible in both states transition in place. Never duplicate a persistent element or hard-cut between views that share components.
  • Directional motion matches position. Tab and carousel transitions animate in the direction matching spatial layout (left-to-right for forward, right-to-left for back).
  • Emerge from the trigger. Overlays, trays, and panels animate outward from the element that opened them. Generic centre-screen entrances break spatial orientation.
  • Consistent polish everywhere. Under-animated areas make the entire product feel unpolished. Motion quality must be uniform across all surfaces.
  • Delight scales inversely with frequency. Rarer interactions have more room for personality and surprise. High-frequency actions must be invisible.
  • Motion enhances perceived speed. Smooth transitions between states feel faster than hard cuts, even at identical load times.

What to animate

  • Movement: transform and opacity only.
  • State feedback: color, background-color, and opacity are acceptable.
  • Never animate layout properties (width, height, top, left); never use transition: all.
  • Avoid filter animation for core interactions; keep blur <= 20px if unavoidable.
  • SVG: apply transforms on a <g> wrapper with transform-box: fill-box; transform-origin: center.
  • Disable transitions during theme switches ([data-theme-switching] * { transition: none !important }).

Easing defaults

Element Duration Easing
Button press feedback 100–160ms cubic-bezier(0.22, 1, 0.36, 1)
Tooltips, small popovers 125–200ms ease-out or enter curve
Dropdowns, selects 150–250ms cubic-bezier(0.22, 1, 0.36, 1)
Modals, drawers 200–350ms cubic-bezier(0.22, 1, 0.36, 1)
Move/slide on screen 200–300ms cubic-bezier(0.25, 1, 0.5, 1)
Simple hover (colour/opacity) 200ms ease
Illustrative/marketing Up to 1000ms Spring or custom

Named curves

  • Enter: cubic-bezier(0.22, 1, 0.36, 1) — entrances and transform-based hover
  • Move: cubic-bezier(0.25, 1, 0.5, 1) — slides, drawers, panels
  • Drawer (iOS-like): cubic-bezier(0.32, 0.72, 0, 1)

Avoid ease-in for UI. Prefer custom curves from easing.dev.

Spatial and sequencing

  • Set transform-origin at the trigger point for popovers; keep center for modals.
  • For dialogs/menus, start around scale(0.85–0.9). Never scale(0).
  • Stagger reveals at 30–50ms per item; total stagger under 300ms.

Accessibility

  • Gate hover animations behind @media (hover: hover) and (pointer: fine) to avoid false positives on touch.
  • During direct manipulation, keep the element locked to the pointer. Add easing only after release.

Performance

  • Only animate transform and opacity — these skip layout and paint.
  • Pause looping animations off-screen with IntersectionObserver.
  • Toggle will-change only during heavy motion and only for transform/opacity — remove after.
  • Do not animate drag gestures using CSS variables (triggers recalc on all children).
  • Motion x/y values are the normal choice for axis-based movement and drag. Use full transform strings when you need one transform owner for combined transforms or interop.
  • See references/performance-deep-dive.md for WAAPI, compositing layers, and CSS vs JS comparison.

Anti-patterns

  • transition: all — triggers layout recalc and animates unintended properties.
  • Animating layout properties (width, height, top, left) for interactive feedback.
  • Using ease-in for UI entrances — feels sluggish.
  • Animating from scale(0) — nothing in the real world appears from nothing. Use scale(0.85–0.95).
  • Animating on mount without user trigger — unexpected motion is disorienting.
  • Permanent will-change — toggle it only during heavy motion.
  • CSS variables for drag gesture animation — repaints every frame.
  • Symmetric enter/exit timing — exit should be faster (user expects instant response).
  • Hard stops on drag boundaries — use friction/damping instead.
  • Mixing Motion x/y props with a handwritten transform string on the same element.
  • Keyframes on rapidly-triggered elements — use CSS transitions for interruptibility.
  • Static cuts between related views — if views share elements, hard cuts lose spatial context. Transition shared elements in place.
  • Duplicating persistent elements across states — animate the same element from its current position to its next, rather than hiding one and showing another.
  • Generic centre-screen entrance for contextual content — overlays and trays should emerge from their trigger, not fade in from nowhere.

Workflow

Copy and track this checklist:

Animation progress:
- [ ] Step 1: Decide whether the interaction should animate
- [ ] Step 2: Choose purpose, easing, and duration
- [ ] Step 3: Pick the implementation style
- [ ] Step 4: Load the relevant component or technique reference
- [ ] Step 5: Validate timing, interruption, and device behavior
  1. Answer the four questions from references/decision-framework.md: should it animate? What purpose? What easing? What speed?
  2. Pick duration from the easing defaults table above.
  3. Choose implementation: CSS transition > WAAPI > spring > keyframe > JS.
  4. Load the relevant reference for your component type or technique.
  5. When reviewing, use the Before/After/Why table format from references/review-format.md.

Validation

  • Verify no layout property animations (width, height, top, left).
  • Check that looping animations pause off-screen.
  • Confirm will-change is toggled only during animation, not permanently set.
  • Retoggle components quickly to confirm transitions retarget cleanly instead of restarting from zero.
  • Slow animations to 0.1x in DevTools to catch timing issues invisible at full speed.
  • Record and play back frame-by-frame for coordinated property timing.
  • Test touch interactions on real devices (not just simulators).
how to use ui-animation

How to use ui-animation on Cursor

AI-first code editor with Composer

1

Prerequisites

Before installing skills in Cursor, ensure your development environment meets these requirements:

  • Cursor installed and configured on your development machine
  • Node.js version 16.0+ with npm package manager (verify with node --version)
  • Active project directory or workspace where you want to add ui-animation
2

Execute installation command

Execute the skills CLI command in your project's root directory to begin installation:

$npx skills add https://github.com/mblode/agent-skills --skill ui-animation

The skills CLI fetches ui-animation from GitHub repository mblode/agent-skills and configures it for Cursor.

3

Select Cursor when prompted

The CLI will show a list of available agents. Use arrow keys to navigate and space to select Cursor:

◆ Which agents do you want to install to?
│ ── Universal (.agents/skills) ── always included ────
│ • Amp
│ • Antigravity
│ • Cline
│ • Codex
│ ●Cursor(selected)
│ • Cursor
│ • Windsurf
4

Verify installation

Confirm successful installation by checking the skill directory location:

.cursor/skills/ui-animation

Reload or restart Cursor to activate ui-animation. Access the skill through slash commands (e.g., /ui-animation) or your agent's skill management interface.

Security & Verification Notice

We perform automated surface-level scans (Gen AI Scanner, Socket, Snyk) during installation. These checks detect common vulnerabilities but do not guarantee complete security. Always review skill source code and verify the publisher's reputation before production use.

Skills execute code in your development environment. Always verify the publisher's identity, review recent commits, and test in isolated environments before production deployment.

List & Monetize Your Skill

Submit your Claude Code skill and start earning

GET_STARTED →

Use Cases

Task Automation & Efficiency

Automate repetitive workflows and reduce manual effort

Example

Generate reports, summarize documents, draft communications

Save 3-5 hours per week on routine tasks

Knowledge Enhancement

Learn new skills, understand complex topics, get expert guidance

Example

Explain concepts, provide examples, suggest learning resources

Accelerate learning and skill development by 2x

Quality Improvement

Enhance output quality through reviews, suggestions, and refinements

Example

Review drafts, suggest improvements, catch errors

Improve work quality by 30-40% with less effort

Implementation Guide

Prerequisites

  • Claude Desktop or compatible AI client with skill support
  • Clear understanding of task or problem to solve
  • Willingness to iterate and refine outputs

Time Estimate

15-45 minutes depending on use case complexity

Installation Steps

  1. 1.Install skill using provided installation command
  2. 2.Test with simple use case relevant to your work
  3. 3.Evaluate output quality and relevance
  4. 4.Iterate on prompts to improve results
  5. 5.Integrate into regular workflow if valuable

Common Pitfalls

  • Expecting perfect results without iteration
  • Not providing enough context in prompts
  • Using skill for tasks outside its intended scope
  • Accepting outputs without review and validation

Best Practices

✓ Do

  • +Start with clear, specific prompts
  • +Provide relevant context and constraints
  • +Review and refine all outputs before using
  • +Iterate to improve output quality
  • +Document successful prompt patterns

✗ Don't

  • Don't use without understanding skill limitations
  • Don't skip validation of outputs
  • Don't share sensitive information in prompts
  • Don't expect skill to replace human judgment

💡 Pro Tips

  • Be specific about desired format and style
  • Ask for multiple options to choose from
  • Request explanations to understand reasoning
  • Combine AI efficiency with human expertise

When to Use This

✓ Use When

Use when skill capabilities match your task, clear ROI on time saved, and you can validate outputs. Best for repetitive tasks, learning, and quality improvement.

✗ Avoid When

Avoid when task requires deep expertise you can't validate, involves sensitive decisions, or when learning process is more valuable than speed of completion.

Learning Path

  1. 1Familiarize yourself with skill capabilities and limitations
  2. 2Start with low-risk, non-critical tasks
  3. 3Progress to more complex and valuable use cases
  4. 4Build expertise through regular use and experimentation

Discussion

Product Hunt–style comments (not star reviews)
  • No comments yet — start the thread.
general reviews

Ratings

4.542 reviews
  • Liam Choi· Dec 28, 2024

    ui-animation fits our agent workflows well — practical, well scoped, and easy to wire into existing repos.

  • Kofi Huang· Dec 20, 2024

    Useful defaults in ui-animation — fewer surprises than typical one-off scripts, and it plays nicely with `npx skills` flows.

  • Layla Park· Dec 16, 2024

    I recommend ui-animation for anyone iterating fast on agent tooling; clear intent and a small, reviewable surface area.

  • Ganesh Mohane· Dec 4, 2024

    ui-animation is among the better-maintained entries we tried; worth keeping pinned for repeat workflows.

  • Liam Thompson· Nov 15, 2024

    ui-animation is among the better-maintained entries we tried; worth keeping pinned for repeat workflows.

  • Liam Robinson· Nov 11, 2024

    We added ui-animation from the explainx registry; install was straightforward and the SKILL.md answered most questions upfront.

  • Liam Park· Nov 7, 2024

    Keeps context tight: ui-animation is the kind of skill you can hand to a new teammate without a long onboarding doc.

  • Olivia Brown· Oct 26, 2024

    Registry listing for ui-animation matched our evaluation — installs cleanly and behaves as described in the markdown.

  • Liam Jackson· Oct 6, 2024

    ui-animation fits our agent workflows well — practical, well scoped, and easy to wire into existing repos.

  • Liam White· Oct 2, 2024

    Solid pick for teams standardizing on skills: ui-animation is focused, and the summary matches what you get after install.

showing 1-10 of 42

1 / 5