/howtoai-design:motionfrom How to AI — Design
Adds purposeful motion to web UIs: micro-interactions, view transitions, entrance/exit choreography, scroll effects, and loading states. Provides duration and easing guidelines for meaningful animations.
Ships in How to AI — Design. 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.
Motion is information. Every animation must answer at least one of three questions for the user: what just changed, where did it come from or go, or what belongs together. An animation that answers none of them is decoration, and decoration-only motion earns deletion — the strongest motion design for most products is a small set of effects that all mean something.
One signature move, executed perfectly and reused everywhere, beats twelve clever ones. Pick the product's signature (a spring pop, a shared-axis push, a morphing element) and keep everything else quiet: fades and small slides.
| What's moving | Duration | Why |
|---|---|---|
| Micro-feedback (hover, press, toggle, focus ring) | 100–200ms | Must feel instant; under ~100ms reads as no animation, over 200ms reads as lag |
| Small component (dropdown, tooltip, accordion panel) | 150–250ms | Small travel distance, small clock |
| View-level (page/route change, modal, drawer) | 250–400ms | Big enough to need explanation, short enough not to block |
| Largest moves (full-screen morph, onboarding moment) | 400–500ms | The ceiling. Nothing user-blocking goes past 500ms |
Two modifiers on every band: exits run faster than entrances (~80% of the entrance time — users need to see what arrives, not what leaves), and frequency discounts duration (an animation the user triggers fifty times a session sits at the bottom of its band or gets cut entirely).
Durations stack. Three list items staggered 300ms apart is a 900ms wait — budget the total sequence against the bands above, not each element.
Nothing in the physical world moves at constant speed and nothing stops instantly. Easing is how motion earns believability:
cubic-bezier(0.2, 0, 0, 1) is a strong default.cubic-bezier(0.4, 0, 1, 1).cubic-bezier(0.45, 0, 0.15, 1).linear() can encode a spring curve; JS springs only when the
motion must be interruptible mid-flight.Define the curves once as custom properties (--ease-out, --ease-in,
--ease-in-out) and reference them everywhere — easing drift across a codebase
is how products end up feeling inconsistent without anyone knowing why.
The 3× test: temporarily triple every duration (or use browser DevTools' animation slow-down) and watch what the easing actually does. At full speed a wrong curve just feels vaguely off; at 3× you can see the element slam into position or crawl out of frame. Fix it slow, then restore the real timing.
transform-origin at the trigger), a modal from the
card that opened it, never from dead center by default.Animate only transform and opacity (plus filter sparingly) for
anything that runs often or during interaction — these run on the compositor
without triggering layout or paint. Animating width, height, top,
left, margin, or padding forces layout every frame and janks on mid-range
phones even when your dev machine shows 60fps.
translate, not top/left.scale, or animate grid-template-rows: 0fr → 1fr for true
height reveals (see recipes).opacity.will-change is a scalpel: apply just before a big transition, remove after.
Left on dozens of elements it eats compositor memory and causes jank.Every effect ships with a prefers-reduced-motion variant. Non-negotiable —
vestibular disorders make large movement physically nauseating. The clean
pattern is opt-in, so forgetting a query fails safe:
.card { transition: opacity 150ms var(--ease-out); }
@media (prefers-reduced-motion: no-preference) {
.card { transition: opacity 150ms var(--ease-out),
translate 250ms var(--ease-out); }
}
Reduced ≠ removed: keep the feedback (opacity changes, instant state swaps, color) and drop the movement (translation, scale, parallax, auto-playing loops). A UI that goes fully static under reduced motion has lost information, not just decoration.
Default to the platform, escalating only as far as the effect requires:
transition for state changes (hover, focus, class toggles).@starting-style + transition-behavior: allow-discrete for entry/exit of
elements that toggle display: none (dialogs, popovers, toasts).@keyframes for multi-step or looping motion.references/view-transitions.md before writing one.animation-timeline: view()/scroll() for scroll-linked effects, feature-
detected with @supports, page fully usable without it.Copy-paste recipes — fade-through, shared-axis push, spring pop, skeleton
shimmer, stagger cascade, height reveal, press feedback, and more, each with
the physics explained: references/motion-recipes.md.
frontend-taste.design-styles. Reworking an existing page →
redesign. Reviewing a design → design-critique.transition: all is a time bomb. It animates properties you add later
(including layout ones), breaks reduced-motion opt-in patterns, and makes
every future CSS change a potential motion bug. Always list properties.transform does. A hover
that sets transform: scale(1.05) silently erases the translateY the
entrance left behind. Use translate, scale, rotate as separate
properties so states compose.opacity: 0 but
not display-toggled sits on top of the UI intercepting taps. Pair exit
animations with pointer-events: none immediately, display/visibility
at the end (or use allow-discrete).content-visibility: auto or pause via IntersectionObserver — laptop fans
spinning on an "idle" page is a motion bug.filter: blur() or a raw
box-shadow repaints large regions every frame. Crossfade a blurred layer's
opacity, or animate a pseudo-element's pre-rendered shadow instead.clip-path: inset()) or counter-scale the content.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
animation, micro-interactions, ui-motion, css-animations, easing
12 skills in this plugin
/bannersDesigns banner and cover graphics — LinkedIn banners, X headers, YouTube channel art, event covers, OG images — as pixel-exact HTML at each surface's real dimensions and safe zones./brand-kitBuilds a brand identity system — color roles, type pairing, logo direction, reusable brand tokens other skills consume. Use for "brand kit", "brand identity", "my brand colors", "brand guidelines", or "make my stuff look consistent"./design-critiqueReviews a design — screenshot, URL, Figma export, or built UI — with a severity-ordered verdict on visual quality, usability, and accessibility in one pass. Use for "critique my design", "design review", "is this accessible", "roast my landing page".npx claudepluginhub rubenhassid1/howtoai-skills --plugin howtoai-designOther plugins' skills for the same job