/animating-icons:animating-iconsfrom animating-icons
Authors, reviews, and batch-produces SVG icon hover gestures and icon-to-icon morphs using CSS keyframes. Supports Hugeicons, Lucide, and Phosphor icon sets.
Ships in animating-icons. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
An icon is not a picture you move. It is an object that does something, and the animation is that thing happening once.
Core principle: the gesture is the icon's meaning acting on itself. A bell rings, a plug disconnects, a package lands. The motion has to be something only that object could do. Whole-<svg> shakes that would look identical on any glyph are decoration — delete them.
| Situation | Open |
|---|---|
| Hover gesture on one glyph | references/FAMILIES.md, then references/EXAMPLES.md |
| Shape itself bends (book, hand, flap) | references/MORPH.md |
| Icon A becomes icon B (menu↔cross) | references/ICON-MORPH.md |
| Authoring CSS / SVG / driver | references/TECHNIQUE.md + references/FAILURES.md |
| Fill (Phosphor-style) ink | references/FILL.md |
| Easing / peak speed | references/EASING.md |
| Done coding | references/VERIFY.md + scripts/verify-icon.mjs |
Could these exact keyframes be pasted onto a different icon and still look fine? If yes, it is decoration. Run twice: once on the idea, once on the finished icon.
| Fails | Passes |
|---|---|
Whole <svg> shakes / bounces / spins | One part moves against another part |
| Every icon in a batch got the same recipe | The recipe was chosen from the icon's verb |
| "Pulse" or "wiggle" applied to a noun | The object's own mechanism operates |
Every icon passes all four. Verify by rendering — never by reasoning. Details in VERIFY.md.
Gate 2 shapes the gesture. Name which landing you use before designing beats:
opacity: 0 / scale(0) on a hundredth-of-a-percent frame; prove invisibility by measurement.If you cannot name which of the four, you do not have a gesture yet.
| What is happening | Reach for | Not |
|---|---|---|
| Part slides / turns / drops; shape unchanged | CSS transform on a wrapper <g> | a morph |
| Shape genuinely changes (paper bends, book closes) | d-morph (MORPH.md) | scaleY/skew fakery |
| Something goes inside / in front / is a hole | mask or clipPath | opacity; z-order |
| A line is written or erased | stroke-dashoffset | a fade |
| Any icon becomes any other in one UI slot | three-line morph (ICON-MORPH.md) | a crossfade |
Ask every time: is the object changing shape, or my view of a rigid object? Almost always the second → transform. Prefer a hard-swap at a covered instant over a morph when coverage is provable.
transform / opacity; stroke-dashoffset and discrete d / visibility OK. Never width/height/x/y/r/cx/cy.px on the root <svg> or HTML wrapper unless computed from size (TECHNIQUE.md § Units).0% (FAILURES.md #2).ig- so the driver and harness can count them.Gesture — plays once on hover (library browse = rare):
| Duration, ONE event | 600–1100ms |
| Duration, N countable beats | ~350–400ms per beat |
| Dwell before start | 130ms |
| Abandoned mid-flight | speed up ×2.2, never cancel |
Derive duration from the set you ship into, not vibe:
grep -oE 'animation: *ig-[a-z0-9-]+ +[0-9.]+s' . | grep -oE '[0-9.]+s' | sort -n | uniq -c
Beats below ~250ms blur into one event. Anticipation needs real time (~40ms+), not a percentage of a tiny beat.
Reduced — sidebar / 100+ hovers a day: 140–220ms, ≤1px translate, scale ≤1.10, rotate ≤16°, holds while hovered. Ask how often it is seen before picking a tier.
Play once on hover, guaranteed to finish. Drive off data-go + dwell, not bare :hover (TECHNIQUE.md § Driver). Honour prefers-reduced-motion: reduce with animation: none (safe only because of gate 2). Icon-swap under reduce: instant coordinate set, no tween.
ig- prefix on animation namesscripts/verify-icon.mjs run (or equivalent strip + rest shots); sheet Readprefers-reduced-motion sits at restFull gate list: VERIFY.md.
d<svg>ease: linear on anything that is not a spin or marqueeLICENSE (opens in a new tab)references/EASING.md (opens in a new tab)references/EXAMPLES.md (opens in a new tab)references/FAILURES.md (opens in a new tab)references/FAMILIES.md (opens in a new tab)references/FILL.md (opens in a new tab)references/ICON-MORPH.md (opens in a new tab)references/MORPH.md (opens in a new tab)references/TECHNIQUE.md (opens in a new tab)references/VERIFY.md (opens in a new tab)scripts/contact-sheet.mjs (opens in a new tab)scripts/contact-sheet.sh (opens in a new tab)scripts/fixtures/broken.html (opens in a new tab)scripts/fixtures/icon.html (opens in a new tab)scripts/seek-shot.mjs (opens in a new tab)scripts/seek-shot.sh (opens in a new tab)scripts/smoke.mjs (opens in a new tab)scripts/verify-icon.mjs (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
svg-animation, icon-hover, icon-morph, css-keyframes, icon-design
2 skills in this plugin
npx claudepluginhub soralabsoss/skills --plugin animating-iconsOther plugins' skills for the same job