motion-architect
Architect-level motion design — purpose-driven transitions with a shared timing and easing scale, choreography and state-change continuity, reduced-motion policy, and the performance rules (transform/opacity, no layout thrash) that keep animation from costing frames. Use when adding or auditing UI motion.
- License 许可
- MIT
- 最近更新
- 2026-11-13
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- motion-architect
- license
- MIT
- metadata
- { "crusor-path": "website-architect/frontend-development-architect/motion-architect", "crusor-domain": "website-architect", "crusor-origin": "original", "crusor-sources": "web.dev/animations; developer.mozilla.org/CSS/transitions; w3.org/WAI/WCAG22 (2.3.3)", "crusor-triggers": "motion, animation, transition, transitions, page transition, framer motion, easing, view transitions, micro-interactions, prefers-reduced-motion", "crusor-verified-on": "2026-10-30" }
- description
- Architect-level motion design — purpose-driven transitions with a shared timing and easing scale, choreography and state-change continuity, reduced-motion policy, and the performance rules (transform/opacity, no layout thrash) that keep animation from costing frames. Use when adding or auditing UI motion.
- compatibility
- Framework-agnostic; CSS transitions + View Transitions / Framer Motion / GSAP
03 SKILL.md 正文
Motion Architect
Motion is communication: it explains where something came from, what changed, and what needs attention. If it explains nothing, it is delay.
When to use
- Adding transitions, page changes, loading and success states.
- The interface feels janky, sluggish, or over-animated.
- Choosing between CSS, View Transitions, and an animation library.
When NOT to use
- Decorative 3D/immersive scenes (see
threejs-architect). - Motion that only exists because a template had it.
Decision 1 — Purpose or nothing
| Purpose | Motion |
|---|---|
| continuity (element moves/expands) | shared-element / layout transition |
| causality (menu opened from button) | origin-aware scale+fade |
| feedback (pressed, saved) | 100–150 ms micro-transition |
| attention (error) | small nudge, once — never a loop |
| progress | determinate bar; indeterminate only when unknown |
- Every animation names its purpose. "It looked nice" is not a purpose.
- One hero moment per view; the rest stays quiet.
Decision 2 — A scale, not ad-hoc numbers
- Durations: 100 ms (micro), 200 ms (standard), 300 ms (large), 400 ms max for UI.
- Easing: one standard ease-out, one ease-in for exits; no bounce except playful brands that own it.
- Tokens (
--motion-fast,--ease-standard), used by every component — motion consistency is what makes a product feel designed.
Decision 3 — Choreography
- Enter: fade + small translate (8–16 px), children stagger 20–40 ms.
- Exit: faster than enter, no stagger delay.
- Lists: animate on insert/remove only; never re-animate the whole list on filter.
- Layout change: animate position/size with a layout transition, not by measuring in JS each frame.
Decision 4 — Performance rules
- Animate
transformandopacityonly.width,height,top,lefttrigger layout;box-shadowtriggers paint. will-changeis a hint, not a fix; remove it after the animation.- Keep the main thread free: no JS animation loops competing with input (INP).
- Off-screen animation pauses.
Decision 5 — Accessibility and restraint
prefers-reduced-motion: reduceremoves movement but keeps state changes (instant or cross-fade); never disable feedback entirely.- No flashing above 3 Hz; no auto-playing looping motion.
- Motion never blocks interaction: the UI is usable before the animation ends.
Failure modes at scale
- 600 ms page transitions on every navigation — the app feels slow, because it is.
- Animating
height: auto→ jank on every accordion open. - Motion that ignores
prefers-reduced-motion(a WCAG failure). - Different easing per component → the product feels assembled, not designed.
- Animations that delay the actual content by a second.
Verification receipts
- Duration/easing audit against the token scale.
- Performance panel: no layout/paint-bound animations, 60 fps maintained.
- Reduced-motion pass: content changes still visible and instant.
- Navigation timing: perceived transition under 300 ms.
- One documented list of intentional motion moments.
04 同仓库更多 Skills
interaction-patterns-architect
Architect-level interaction design in code — choosing established patterns over invented ones, feedback and latency behaviour, destructive-action safeguards, navigation and overlay conventions, and the state model behind every interactive surface. Use when a screen has to behave, not just look.
design-system-ops-architect
Architect-level operation of a design system in code — token pipelines and versioning, component API and variant policy, the catalogue as the contract, adoption metrics, and the governance that stops a system from forking into three. Use when a component library must survive several teams.
design-handoff-architect
Architect-level design handoff — what must be specified before implementation starts, tokens over raw values, responsive and content-limit contracts, state matrices, and the review loop that catches drift between design and code. Use when a design is about to become code.
content-microcopy-architect
Architect-level UI content — where strings live, voice and terminology consistency, error and empty-state copy as part of the interface, translation-ready authoring, and the content model a product needs before it multiplies screens. Use when the words in the interface matter as much as the pixels.
ui-ux-implementation-architect
Architect-level direction for turning a design into working UI — the handoff contract, component ownership versus screen-level layout, interaction and state conventions, design QA gates, and the review habits that keep an implementation faithful without frozen pixels. Use before any specific UI implementation skill.
test-strategy-architect
Architect-level test strategy — allocating assertions across unit, integration, contract and end-to-end layers, designing for testability through dependency boundaries, fixture and data strategy, and the flake and coverage policies that keep a suite trustworthy. Use when defining how a codebase is tested.