/design-engine:motion-designfrom design-engine
Defines system-level motion timing, easing, transitions, choreography, loading motion, and reduced-motion behavior across web and native products.
Ships in design-engine. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Acknowledgement: Shared by Peter Bamuhigire, techguypeter.com, +256 784 464178.
prefers-reduced-motion path: replacing vestibular triggers (parallax, large translate, scale, spring overshoot) with safe non-spatial equivalents per WCAG 2.3.3 / 2.3.1 / 2.2.2.practical-ui-design or webapp-gui-design.micro-interactions-and-feedback.animateFloatAsState, SwiftUI .spring(duration:bounce:)) — pair with android-ui-ux-design / ios-ui-ux-design.visual-product-slop-audit.| Input | Source | Required? | Evidence |
|---|---|---|---|
| Motion inventory and target platforms | Product flow and platform owners | yes | Named transitions, triggers, states, and APIs |
| Motion tokens and performance constraints | Design system and engineering | yes | Current durations, easings, budgets, and supported properties |
| Accessibility and interruption needs | User research and accessibility requirements | yes | Reduced-motion substitutions and interruption cases |
| Condition | Choice | Wrong-choice failure |
|---|---|---|
| Brief asks for parallax or scroll-linked storytelling | Story pages only; static default; CSS scroll timelines or observer toggles on transform and opacity; never auto-scroll or scroll-jack | Jank, vestibular harm and poor INP on mid-range phones |
| Short, non-interruptible state change | Tokenised cubic-bezier transition | A spring adds needless oscillation and platform drift |
| Gesture-driven or interruptible movement | Critically or near-critically damped spring | Fixed easing breaks continuity when redirected |
| Vestibular trigger or reduced-motion preference | Non-spatial fade, instant swap, or progress change | Disabling nothing exposes users to harmful motion |
| Work completes under roughly 80 ms | Immediate state feedback, no loader | Spinner flash makes the interface feel slower |
Read and search are required for design, token, and implementation sources. Editing is allowed only when implementation is requested. Execution or rendering is required for performance and platform claims; network access, publication, and production mutation require separate authority.
Without runnable builds, deliver a motion specification and mark timing, frame-rate, and platform parity unverified. Without user motion preferences, apply the safest non-spatial replacement and block release of vestibular effects.
| Artefact | Consumer | Evidence and acceptance condition |
|---|---|---|
| Motion language and token map | Designers and engineers | Every motion category maps to an approved duration and curve |
| Transition and reduced-motion specifications | Product teams | Each trigger has normal, interrupted, and reduced-motion behaviour |
| Render and performance evidence | QA and release owner | Target-platform checks pass or unsupported claims are marked unverified |
references/scroll-driven-effects.md — safe parallax policy, implementation order, budgets and checklist.
references/spring-physics-and-easing.md — easing-vs-spring decision, stiffness/damping/ζ params, platform spring APIs, CSS linear().
references/view-transitions.md — View Transitions API patterns (same-doc, shared-element morph, cross-doc MPA, directionality).
references/reduced-motion.md — prefers-reduced-motion strategy, WCAG 2.3.3 contract, considered-replacement table.
Pair with ../../07-mobile-ios-android-cross-platform/ios-ui-ux-design/references/ios-sensory-and-haptics.md and ../../07-mobile-ios-android-cross-platform/ios-ui-ux-design/references/hig-liquid-glass.md when Apple haptics, SF Symbols animation, or Liquid Glass chrome is in scope.
doctrine/design-doctrine.md — the anti-slop charter; motion is a slop tell when overused or when bounce/elastic easing is applied.
doctrine/references/ai-slop-taxonomy.md — the product/interface slop tells, including AI-fingerprint animation (bounce/elastic, animation fatigue).
doctrine/references/wcag-2.2-criteria.md — the accessibility floor; motion must honour 2.3.3 (reduced motion) and 2.3.1 (≤3 flashes/s).
examples/micro-interaction-spec.md — a worked save/bookmark toggle spec: timing, spring params, all states, optimistic rollback, and a considered prefers-reduced-motion fallback. Use as the template for any motion spec.| Companion Skill | When to Load |
|---|---|
practical-ui-design | Visual system (colour, type, spacing) |
android-ui-ux-design | Android Compose animation APIs |
ios-ui-ux-design | SwiftUI animation/transition APIs |
webapp-gui-design | Web app CSS/JS animation |
visual-product-slop-audit | Validate animations aren't AI slop |
| Category | Duration | Use For |
|---|---|---|
| Feedback | 100-150ms | Button press, toggle, checkbox, hover |
| State change | 200-300ms | Accordion, tab switch, dropdown, modal appear |
| Layout shift | 300-500ms | Page transition, panel expand, reorder |
| Entrance | 500-800ms | Hero content, first-time reveal, onboarding |
Exit duration = ~75% of enter duration. Users care less about things leaving than arriving.
| Curve | CSS Value | When to Use |
|---|---|---|
| ease-out-quart | cubic-bezier(0.25, 1, 0.5, 1) | Default for most entrances and micro-interactions |
| ease-out-quint | cubic-bezier(0.22, 1, 0.36, 1) | Snappy feedback (toggles, checkboxes) |
| ease-out-expo | cubic-bezier(0.16, 1, 0.3, 1) | Dramatic entrances, hero content |
| ease-in-quart | cubic-bezier(0.5, 0, 0.75, 0) | Exit animations |
| ease-in-out | cubic-bezier(0.4, 0, 0.2, 1) | Toggles, state changes, position swaps |
| Curve | Why |
|---|---|
bounce / elastic | Dated, tacky — the #1 AI animation fingerprint |
linear | Mechanical, unnatural (except for continuous rotation) |
ease (CSS default) | Too gentle, feels mushy |
| Custom springs with visible oscillation | Distracting, unprofessional |
Use a physics spring instead of a fixed cubic-bezier when the motion can be interrupted or
redirected mid-flight (drag, gesture, re-tap) or should carry mass/momentum (sheets, drag-to-
dismiss). Parameterise by stiffness + damping, and keep the damping ratio ζ ≥ 0.7 (default
ζ = 1.0 — no overshoot); ζ < 0.6 is the banned bounce/elastic tell. Good starting presets:
snappy stiffness 700 / damping 38, standard UI 400 / 40. On the web you can bake a spring into a
hardware-accelerated CSS linear() easing function. Full decision table, per-platform spring APIs,
and tuning rules: references/spring-physics-and-easing.md.
| Property | Use For |
|---|---|
transform: translate() | Position changes, slide in/out |
transform: scale() | Grow/shrink, emphasis |
transform: rotate() | Spin, flip, tilt |
opacity | Fade in/out, reveal/hide |
These run on the GPU compositor — no layout recalculation, no jank.
| Property | Why |
|---|---|
width, height | Triggers layout recalculation every frame |
top, left, right, bottom | Triggers layout recalculation every frame |
margin, padding | Triggers layout recalculation every frame |
border-width, border-radius | Triggers paint every frame |
font-size | Triggers layout + paint + composite |
box-shadow (animated) | Expensive paint operation |
Alternative: Use transform: scale() instead of animating width/height. Use transform: translate() instead of animating position.
opacity: 0 → 1 (200-300ms, ease-out-quart)translate(0, 16px) → translate(0, 0) + fade (300-500ms)scale(0.95) → scale(1) + fade (200-300ms)scale(0.97) on :active (100ms, ease-out-quint)max-height or CSS grid trick (250-300ms)Use the View Transitions API for state/route/page swaps instead of hand-rolling FLIP or
absolute-positioned clones. Same-document: feature-detect document.startViewTransition(update)
(instant fallback when unsupported). Shared-element morphs use matching view-transition-names in
both states; cross-document MPA navigations opt in with CSS @view-transition { navigation: auto; }.
View Transitions are not reduced-motion-exempt — disable the ::view-transition-* animations
under prefers-reduced-motion. Full patterns: references/view-transitions.md.
translate(-4px) → translate(4px) x2 (300ms)/* Set index via inline style or CSS custom property */
.stagger-item {
--i: 0; /* set per element: style="--i: 0", style="--i: 1", etc. */
animation: fadeSlideUp 300ms ease-out both;
animation-delay: calc(var(--i) * 60ms);
}
@keyframes fadeSlideUp {
from {
opacity: 0;
transform: translateY(12px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
Rules:
delay = min(index * 60ms, 480ms) keeps long lists from becoming slow.35%+ of adults over 40 experience vestibular sensitivity. This is not optional.
This satisfies WCAG 2.3.3 Animation from Interactions — treated here as a hard floor despite its
AAA label (see doctrine/references/wcag-2.2-criteria.md). The query means "prefers safer motion,"
not "zero motion": replace vestibular triggers (large translate, parallax, scale, spring
overshoot) with non-spatial equivalents (opacity-only ≤100ms, static) — don't strip feedback
wholesale. Also honour 2.3.1 (nothing flashes >3×/s) and 2.2.2 (auto-play >5s is pausable),
including inside the reduce path. Full replacement table, the no-preference opt-in pattern, and
JS/native hooks: references/reduced-motion.md.
@media (prefers-reduced-motion: reduce) {
*, *::before, *::after {
animation-duration: 0.01ms !important;
animation-iteration-count: 1 !important;
transition-duration: 0.01ms !important;
scroll-behavior: auto !important;
}
}
| Normal | Reduced Motion |
|---|---|
| Slide + fade entrance | Instant appear (or very fast fade, 100ms) |
| Position transitions | Instant position change |
| Parallax scrolling | Static positioning |
| Auto-playing video/animation | Paused with play button |
| Continuous rotation/pulse | Static state |
Start animations before data arrives. Show optimistic UI immediately, update when data loads.
Animate to ~90% quickly, slow the last 10%. Progress feels faster even if total time is the same.
Apply state changes immediately in the UI. Roll back only if the server rejects.
User taps "Like" → Heart fills instantly → API call fires in background
→ If fails, revert heart + show error
will-change sparingly (only on elements about to animate)requestAnimationFrame for frame-synced updatesanimateFloatAsState, animateContentSize, AnimatedVisibilityAnimatable for interruptible animationsspring() for physics-based: dampingRatio = DampingRatioNoBouncy (ζ=1), tune via stiffnessLocalReducedMotion.current (Compose 1.7+).animation() modifier or withAnimation {}.spring(duration:bounce:) — keep bounce at 0 (ζ=1) for professional feel; ≤0.15 maxmatchedGeometryEffect for shared element transitionsUIAccessibility.isReduceMotionEnabledBefore shipping animations:
prefers-reduced-motion provides meaningful alternativeSources: Impeccable motion-design reference (Bakaus, 2025) — Impeccable (Paul Bakaus), Apache-2.0, https://github.com/pbakaus/impeccable, commit 114ea1d (reviewed 2026-09-29); superseded-upstream: upstream reference removed in v4; retained as house guidance; Material Design 3 motion-physics spec; Apple Human Interface Guidelines — Motion; W3C CSS View Transitions Module L1/L2 (MDN); WCAG 2.2 (2.3.1 / 2.3.3 / 2.2.2). Deep-dives in references/.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
CSS, TypeScript, Swift, Kotlin
npx claudepluginhub peterbamuhigire/chwezi-design-engine --plugin design-engine110 skills in this plugin
/accessibility-wcag-2-2-complianceUse when designing or auditing an interactive UI for WCAG 2.2 AA, keyboard and focus behaviour, accessible names, screen readers, target size, reflow, authentication, or reduced motion. Use inclusive-and-assistive-design for needs beyond the compliance floor./accessible-color-and-contrastUse when verifying or fixing text, UI, focus, border, status, or data colours for contrast and colour-vision accessibility. Unlike color-system-and-palette, this is the focused WCAG/APCA and non-colour-cue gate, not palette creation./advertising-creative-art-directionOther plugins' skills for the same job