ui-animation

ui animation

mblode 66 ↓ 7.4k MIT updated 25d ago
Claude Code
View source ↗

What it does

  • Animate for feedback, orientation, continuity, or deliberate delight. If it's just "it looks cool" and the user sees it often, don't.
  • Never animate keyboard-initiated actions (shortcuts, arrow navigation, tab/focus); they repeat constantly and animation makes them feel slow.
  • Prefer CSS transitions for interruptible UI: keyframes restart from zero on interruption, transitions retarget. Use keyframes only for predetermined sequences.
  • Implementation priority: CSS transitions > WAAPI > CSS keyframes > JS (requestAnimationFrame); under load CSS stays smooth while JS drops frames.
  • Use @starting-style for DOM entry; fall back to a data-mounted attribute where unsupported.
  • A small filter: blur(2px) hides rough crossfades between swapped content.
  • Directional motion matches position. Tab and carousel transitions animate in the direction matching spatial layout (left-to-right forward, right-to-left back).

Requirements & configuration

  • Prefer lower-overhead transitions (CSS-only) unless the design requires JS orchestration.
  • Every animation needs a prefers-reduced-motion: reduce path: disable transform/keyframe motion, keep instant state changes or opacity-only fades. All recipes include the guard.

Derived from the skill's own SKILL.md documentation · extracted 2026-07-23

ui animation

Source

Repository: https://github.com/mblode/agent-skills

ui-animation FAQ

What does the ui-animation skill do?

>- Designs, implements, reviews, debugs, and reverse-engineers UI motion: CSS transitions, keyframes, springs, gestures, drag, easing, timing, framer-motion, and animation curves from screen recordings. Use when asked to "add animations", "make this feel smooth", "review my animations", "add a swipe gesture", "match this easing", "reverse engineer this animation", "extract the animation curve", or "what's it called when..." to name a motion effect from a vague description. For visual direction use ui-design; for page-level UI audit use ui-audit. Animate for feedback, orientation, continuity, or deliberate delight. If it's just "it looks cool" and the user sees it often, don't. Never animate keyboard-initiated actions (shortcuts, arrow navigation, tab/focus); they repeat constantly and animation makes them feel slow.

What does ui-animation require?

Prefer lower-overhead transitions (CSS-only) unless the design requires JS orchestration. Every animation needs a prefers-reduced-motion: reduce path: disable transform/keyframe motion, keep instant state changes or opacity-only fades. All recipes include the guard.

How do I install ui-animation?

Run: npx -y skills add https://github.com/mblode/agent-skills --skill ui-animation --agent claude-code — the source lives at github.com/mblode/agent-skills.

Maintain ui-animation?

Let people know it's listed here — add the badge (live metrics, light/dark aware) or a plain link to your README or docs.

ui-animation on getagentictools
[![ui-animation on getagentictools](https://getagentictools.com/badge/skills/mblode-agent-skills-ui-animation.svg)](https://getagentictools.com/skills/mblode-agent-skills-ui-animation?ref=badge)
npx agentictools info skills/mblode-agent-skills-ui-animation

The second line is the CLI lookup for this page — handy in READMEs and docs.