agentleFS
ZachArticulateVZachArticulateV/designer-pro-and-seo/skills/design-motion/SKILL.md

design-motion

Skill10 starsChanged 27 days agoMITView on GitHub

Implement motion from a design system's motion tokens — emit real CSS/JS for entrance/scroll animations, micro-interactions (hover/press/focus), and transitions, with a reduced-motion fallback. Trigger when the user says "add motion", "animate this", "implement the animations", "micro-interactions", "scroll animations", "page transitions", or "make it feel alive".

6 other projects use a version of this.

Adopted by

Most recently taken up by

The file

Files
SKILL.md

design-motion

Family: design Status: Stable

Purpose

The implementation counterpart to design-dimensions dimension 5. That skill specifies motion; nothing builds it. This emits production-ready CSS (and minimal JS where needed) from a design system's motion tokens — so "the brief said 250ms ease-out micro-interactions" becomes actual code, with an accessibility-safe reduced-motion fallback every time.

Triggers

  • "add motion" / "animate this" / "make it feel alive"
  • "implement the animations" / "micro-interactions"
  • "scroll animations" / "page transitions"

Inputs

  • Motion tokens (duration, easing) — from a design system / design-system-gen
  • The elements/sections to animate and the desired feel
  • Stack (vanilla CSS/JS, Tailwind, React, etc.)

Steps

  1. Read the motion tokens — base duration + easing from the design system (e.g. 200ms ease-out). If absent, propose sensible defaults and note it.
  2. Emit the reduced-motion guard first — wrap motion so @media (prefers-reduced-motion: reduce) disables/reduces it. This is non-negotiable (accessibility).
  3. Generate the motion set for the target stack:
    • Entrance/scroll — fade/slide-in on intersection (IntersectionObserver, or CSS scroll-driven animations where supported), respecting the token timing.
    • Micro-interactions — hover, press, and focus-visible states (focus parity matters for keyboard users).
    • Transitions — section/page transitions using the token easing.
  4. Keep it performant — animate transform/opacity only; avoid layout- thrashing properties; no animation on the LCP element's first paint.
  5. Deliver code ready to paste, plus a one-line note on where to place it.
  6. Audit it (and any existing motion layer) before handing off:
    python3 "${CLAUDE_PLUGIN_ROOT}/scripts/design/motion_audit.py" --css styles.css --html page.html --human
    M1–M9 (references/design-motion/motion-rubric.md): missing reduced-motion guard, layout-property animation, transition: all, over-long UI motion, infinite animations and autoplay video without a stop, un-reset smooth scrolling, removed focus outlines, untokenized timing. Ship only when M1 / M8 are clear.

Outputs

  • Paste-ready CSS/JS (or framework equivalent) for the requested motion
  • A required prefers-reduced-motion fallback block
  • Performance notes (transform/opacity-only, LCP-safe)

Dependencies

  • scripts/design/motion_audit.py (required) — the M1–M9 motion audit
  • references/design-motion/motion-rubric.md (required) — guard snippet, timing tokens, codes
  • Composes with design-dimensions (spec source), design-system-gen (motion tokens), design-accessibility (reduced-motion check).

Notes

Motion is the cheapest polish lever and the most-skipped — this skill makes implementing it (and its reduced-motion fallback) routine. Always animate transform/opacity for 60fps; never trap keyboard users by animating focus away.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.