Motion Genome
Motion is information. Every effect must explain state, cause, hierarchy, continuity or space. If it explains nothing, it goes.
This skill is a genome of 52 web motion techniques. Each card says how the effect works, a minimal sketch, a timing range, what it pairs with, how to push it somewhere new, its accessibility contract and its cost. Use the cards to build original effects in the project's own design language. Never paste a sketch unchanged as the final effect.
When to use
- Adding any animation, transition or interactive effect
- Choosing a signature effect for a page or hero
- A page feels static, generic, janky, or "everything moves"
- Reviewing motion code for accessibility or performance
Workflow
- Read the brief and the system. Audience, feeling, brand tempo (calm, precise, playful, cinematic), existing tokens and components. If the project has
DESIGN.mdor motion tokens, they win. - Pick one signature. One memorable moment per page: usually the hero, a gallery, or the primary CTA. Then at most one or two quiet supporting effects. Write one sentence per effect saying what it explains. Drop any effect you cannot justify.
- Load only the families you need. Read the matching file in
techniques/. Do not load all of them. - Choose timings from the scale. Use
reference/timing.md, or copyassets/motion-tokens.cssinto the project. Small UI is fast, large surfaces are slower, exits are faster than entrances. - Push it. Apply one or two "Push it" mutations so the result belongs to this brand, not to a tutorial. Combine mechanisms from different families when they do not fight over the same property.
- Honor the contract. Every card's Access line is mandatory. Read
reference/accessibility.mdonce per project. - Audit. Run the slop-gate audit (
node <slop-gate>/scripts/audit.mjs <path>) and fix every error. Then verify in a browser with reduced motion on and off, keyboard only, and on a narrow touch viewport.
Families
| File | Covers |
|---|---|
techniques/pointer.md | Cursor variables, spotlight, border light, tilt, magnetic, follower, parallax, proximity |
techniques/feedback.md | Press, ripple, fill sweep, underline, icon morph, toggles, success states, skeletons |
techniques/text.md | Split reveals, line masks, decode, variable axes, number rolls, marquee, highlight sweep |
techniques/scroll.md | Enter reveals, scroll-driven timelines, pinned scrub, sticky stacks, horizontal tracks, parallax, velocity, color handoff |
techniques/transitions.md | View transitions, shared elements (FLIP), list reorder, height reveal, dialog enter/exit, route curtains, stagger |
techniques/surfaces.md | Grain, gradient drift, aurora, glass, loaders, ambient loops |
techniques/depth.md | CSS 3D, Three.js hero objects, shader image transitions, particles, model viewers |
Choreography rules
- One signature, then quiet. A page with five showpieces has none.
- One owner per property. Two effects may never animate the same property on the same element (two transforms, two entrances).
- Content first. Navigation, headline and primary action are readable and usable before any intro finishes.
- Animate cheap properties.
transform,opacity,filter,clip-pathand registered custom properties. Nevertop,left,width,heightormarginin a loop. - Pointer in, CSS out. Write pointer position into CSS variables once per frame, then do the visuals in CSS.
- Exit faster than enter. Roughly 70 to 80 percent of the entrance duration.
- Stagger is seasoning. 30 to 80ms between siblings, and cap the total so the last item lands within about 600ms.
- One ambient loop per page, at most, and it pauses offscreen.
- One smooth-scroll engine, if any. Never two.
Card format
### Name `id`
How it works.
sketch
- Timing / Use on / Pairs with / Push it / Access / Cost (1 cheap to 5 heavy)
References
reference/timing.md: duration scale, easing curves, published motion systemsreference/accessibility.md: the motion accessibility contract and WCAG mappingreference/performance.md: compositor rules, frame budget, cleanupassets/motion-tokens.css: drop-in duration and easing tokens with a reduced-motion base