Communitygithub.com

motion-genome

Use when adding, choosing, reviewing or debugging any web animation or interaction - hover and press states, cursor effects, text reveals, scroll-driven or pinned sections, page and view transitions, loaders, ambient backgrounds, 3D or WebGL heroes - or when a site feels static, janky, over-animated or inaccessible. Gives mechanisms, timings, pairings and an accessibility contract for 52 techniques.

What is motion-genome?

motion-genome is a Cursor agent skill that use when adding, choosing, reviewing or debugging any web animation or interaction - hover and press states, cursor effects, text reveals, scroll-driven or pinned sections, page and view transitions, loaders, ambient backgrounds, 3D or WebGL heroes - or when a site feels static, janky, over-animated or inaccessible. Gives mechanisms, timings, pairings and an accessibility contract for 52 techniques.

Works with~Claude Code~Codex CLI✓Cursor
npx skills add https://github.com/zyadhajaji/forge-skills/tree/HEAD/skills/motion-genome

Ask in your favorite AI

Open a new chat with this agent skill pre-loaded.

Documentation

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

  1. Read the brief and the system. Audience, feeling, brand tempo (calm, precise, playful, cinematic), existing tokens and components. If the project has DESIGN.md or motion tokens, they win.
  2. 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.
  3. Load only the families you need. Read the matching file in techniques/. Do not load all of them.
  4. Choose timings from the scale. Use reference/timing.md, or copy assets/motion-tokens.css into the project. Small UI is fast, large surfaces are slower, exits are faster than entrances.
  5. 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.
  6. Honor the contract. Every card's Access line is mandatory. Read reference/accessibility.md once per project.
  7. 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

FileCovers
techniques/pointer.mdCursor variables, spotlight, border light, tilt, magnetic, follower, parallax, proximity
techniques/feedback.mdPress, ripple, fill sweep, underline, icon morph, toggles, success states, skeletons
techniques/text.mdSplit reveals, line masks, decode, variable axes, number rolls, marquee, highlight sweep
techniques/scroll.mdEnter reveals, scroll-driven timelines, pinned scrub, sticky stacks, horizontal tracks, parallax, velocity, color handoff
techniques/transitions.mdView transitions, shared elements (FLIP), list reorder, height reveal, dialog enter/exit, route curtains, stagger
techniques/surfaces.mdGrain, gradient drift, aurora, glass, loaders, ambient loops
techniques/depth.mdCSS 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-path and registered custom properties. Never top, left, width, height or margin in 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 systems
  • reference/accessibility.md: the motion accessibility contract and WCAG mapping
  • reference/performance.md: compositor rules, frame budget, cleanup
  • assets/motion-tokens.css: drop-in duration and easing tokens with a reduced-motion base

Individual skills in this repo

This repo contains 1 individual skill — each has its own dedicated page.

Related Skills