motion-designer
Use when adding any animation, transition or scroll effect to a page — the property discipline, timing canon, reduced-motion contract, scroll-timeline patterns and what NOT to build. Grounded in the 2026 motion state of the art (docs/website-excellence-research-2.md §motion).
- License 许可
- MIT
- 最近更新
- 2026-11-15
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- motion-designer
- description
- Use when adding any animation, transition or scroll effect to a page — the property discipline, timing canon, reduced-motion contract, scroll-timeline patterns and what NOT to build. Grounded in the 2026 motion state of the art (docs/website-excellence-research-2.md §motion).
03 SKILL.md 正文
Motion Designer
Motion on an elite page is quiet, fast, and compositor-only. The 2026 receipts: Linear's homepage runs 150 hand-authored CSS keyframes and ZERO JS animation libraries; the six best dev-tool homepages ship no GSAP, no Framer-Motion-on-landing, no particles, no cursor followers, no Lottie. Restraint is the elite signal.
The laws (all enforced by the critic's anim gate)
- Compositing-only: animate
transform,translate,scale,rotate,opacity,filter— plus paint props (colors, box-shadow, clip-path) where the effect needs them. NEVERwidth/height/top/left/margin/padding(the one exception: the radix accordion height pattern). NEVERtransition: all— list the properties. A fill level isscaleX()withtransform-origin: left, not a width. - The finished state ships in the markup. SSR/first paint renders the
END state; entrance effects run FROM initial values (
@starting-styleor.from()-style). If JS never loads, the page looks finished. No entrance animation may shift layout (CLS) or block first paint. - The timing canon: interaction feedback ≤ 200ms (Raycast's modal hovers are .15s); orchestrated reveals ≤ 800ms; duration proportional to trigger size (dialogs scale from .95, never 0→1); frequent actions skip animation entirely.
- Ambient loops: opacity/transform only, 2-4s cycles, pause when
off-screen (
IntersectionObserver→animation-play-state: paused), and never carry information. - The reduced-motion contract: wrap motion in
@media (prefers-reduced-motion: no-preference)(the opt-in pattern — the no-support default is the finished state). Underreduce, everything renders complete. Simple crossfades may stay; parallax, zoom and scroll-scrub are the vestibular risks and always gate. - Hover-gating: pointer-driven effects (spotlight, magnetic,
gradient-follow) only inside
@media (hover: hover) and (pointer: fine), never the sole affordance, always with a:focus-visibleequivalent. (The elite sites skip cursor-followers entirely — so should you.) - Load discipline: nothing content-critical depends on an animation
completing; no autoplay motion >5s without pause/stop/hide; hero video
= muted looped mp4 with poster +
preload="none"(Framer's pattern).
Scroll effects (the 2026 pattern)
- CSS scroll-driven animations are cross-engine as of Firefox 159
(2026-10-27):
animation-timeline: scroll()/view()behind@supports (animation-timeline: scroll()), with the finished state as the no-support render (Stripe's pattern). - Scrubbed video stays JS (
rAF+scrollY→video.currentTime) — Apple's approach for product films. scroll-snapfor galleries (scroll-snap-type: x mandatory), sticky sections for chaptered reveals,scroll-margin-topon every anchor target.
Procedure
- Write the RESTING state first — the page complete, no motion.
- Add ONE motion per moment; ask "what would a senior designer delete?" and delete it first.
- Verify:
node scripts/design_critic.mjs --route <route> --label motion-check --no-vlm— the anim gate (0 layout props, no transition:all, reduced-motion guard present) and CLS must pass. - Watch it twice at 50% CPU throttle — jank at 2x cost is jank on a real phone.
04 同仓库更多 Skills
valid-skill
A valid skill for testing purposes.
unknown-field
A skill with an unknown frontmatter field.
nested-child
Nested skill should be ignored.
root-skill-preferred
Root skill should win.
no-frontmatter
暂无简介
child-skill
A nested skill in a subdirectory.