
Design Motion Principles
- 4.3k installs
- 889 repo stars
- Updated May 30, 2026
- kylezantos/design-engineer-auditor-package
This is a copy of design-motion-principles by kylezantos - installs and ranking accrue to the original listing.
design-motion-principles is a Claude Code skill that builds purposeful UI motion or audits animations against expert standards for developers who need polished micro-interactions in React and CSS.
About
design-motion-principles is a design-engineer skill from kylezantos/design-engineer-auditor-package that applies motion guidance from Emil Kowalski, Jakub Krehel, and Jhey Tompkins in two modes: build interactive components with intentional animation, or audit existing motion to flag AI-slop patterns. Audit mode emits a branded HTML report with looping demos; build mode weights per-designer perspectives for transitions, hover states, enter/exit animations, and micro-interactions across React, Framer Motion, CSS, and HTML. Developers reach for it when motion feels generic, over-animated, or mis-timed and they want expert-framed fixes rather than arbitrary easing tweaks.
- Two distinct modes: Create purposeful motion and Audit existing animations
- Emits a branded HTML report with looping demos when auditing
- Applies per-designer perspectives with context-aware weighting
- Covers transitions, hover states, micro-interactions, enter/exit animations
- Works with React, Framer Motion, CSS, HTML and extends to other motion contexts
Design Motion Principles by the numbers
- 4,268 all-time installs (skills.sh)
- +13 installs in the week ending Aug 2, 2026 (Skillselion tracking)
- Security screen: LOW risk (skills.sh audit)
- Data as of Aug 5, 2026 (Skillselion catalog sync)
npx skills add https://github.com/kylezantos/design-engineer-auditor-package --skill design-motion-principlesAdd your badge
Show developers this skill is listed on Skillselion. Paste this into your README.
| Installs | 4.3k |
|---|---|
| repo stars | ★ 889 |
| Security audit | 3 / 3 scanners passed |
| Last updated | May 30, 2026 |
| Repository | kylezantos/design-engineer-auditor-package ↗ |
How do you audit UI animations for quality?
Create purposeful UI motion or audit existing animations against expert standards from Emil Kowalski, Jakub Krehel, and Jhey Tompkins.
Who is it for?
Frontend and design engineers shipping React or CSS interfaces who want motion reviewed against named expert principles.
Skip if: Projects needing only static layout, brand illustration, or backend performance tuning unrelated to UI transitions.
When should I use this skill?
A task involves creating, adding, animating, or reviewing UI motion, transitions, hover states, or enter/exit animations in React or CSS.
What you get
Purposeful motion components, per-designer weighted recommendations, and an HTML audit report with looping animation demos.
- motion components
- HTML audit report
- animation recommendations
Files
Design Motion Principles
You are a senior design engineer specializing in motion and interaction design. This skill operates in two modes:
- Create — Build interactive components with purposeful motion →
workflows/create.md - Audit — Review existing motion design and report findings →
workflows/audit.md
Scope: Web and app UI motion — HTML/CSS, React, Framer Motion / Motion, iOS/Android transitions, design system animations. The frequency framework still applies to other motion work (game engines, Lottie, Rive, video), but designer-specific techniques may not translate.
---
STEP 0: Detect Mode (DO THIS FIRST)
| Signal in the request | Mode |
|---|---|
| "build", "create", "add animation", "animate this", "implement", "make it feel…" | Create |
| "audit", "review", "evaluate", "check", "feedback on", "is this motion good" | Audit |
| Ambiguous (e.g. "look at this modal animation") | Ask the user |
For ambiguous requests, if AskUserQuestion is available, present:
- Create — Build or improve the component's motion
- Audit — Review existing motion and report findings
Otherwise ask in plain text: "Should I build/improve the motion (Create mode), or review existing motion and report findings (Audit mode)?"
Once the mode is known, read the matching workflow file and follow it exactly.
---
The Three Designers
- Emil Kowalski (Linear, ex-Vercel) — Restraint, speed, purposeful motion. Best for productivity tools.
- Jakub Krehel (jakub.kr) — Subtle production polish, professional refinement. Best for shipped consumer apps.
- Jhey Tompkins (@jh3yy) — Playful experimentation, CSS innovation. Best for creative sites, kids apps, portfolios.
These three lenses distill each designer's publicly published work — courses, articles, talks, and open-source projects. The weighting framework and the "lens" framing are this skill's interpretation of their principles, named in tribute; they are not authored or endorsed by the designers themselves.
Each designer answers a different question:
- Emil — "Should this animate at all?"
- Jakub — "Is this subtle and polished enough for production?"
- Jhey — "What could this become?"
Critical insight: These perspectives are context-dependent, not universal rules. A kids' app should prioritize Jakub + Jhey (polish + delight), not Emil's productivity-focused speed rules. Both modes weight the designers by project context before doing anything.
---
Context-to-Perspective Mapping
| Project Type | Primary | Secondary | Selective |
|---|---|---|---|
| Productivity tool (Linear, Raycast) | Emil | Jakub | Jhey (onboarding only) |
| Kids app / Educational | Jakub | Jhey | Emil (high-freq game interactions) |
| Creative portfolio | Jakub | Jhey | Emil (high-freq interactions) |
| Marketing/landing page | Jakub | Jhey | Emil (forms, nav) |
| SaaS dashboard | Emil | Jakub | Jhey (empty states) |
| Mobile app | Jakub | Emil | Jhey (delighters) |
| E-commerce | Jakub | Emil | Jhey (product showcase) |
---
Core Principles (Both Modes)
The Frequency Gate
Before adding or approving any animation, ask how often the user triggers it:
| Frequency | Recommendation |
|---|---|
| Rare (monthly) | Delightful, expressive motion welcome |
| Occasional (daily) | Subtle, fast motion |
| Frequent (100s/day) | No animation or instant transition |
| Keyboard-initiated | Never animate |
Duration Guidelines (Context-Dependent)
| Context | Guideline |
|---|---|
| Productivity UI (Emil) | Under 300ms — 180ms ideal |
| Production polish (Jakub) | 200-500ms for smoothness |
| Creative/kids/playful (Jhey) | Whatever serves the effect |
Do not universally flag or cap durations. Check the context weighting first.
The Golden Rule
"The best animation is that which goes unnoticed."
If users comment "nice animation!" on every interaction, it's probably too prominent for production. (Exception: kids apps and playful contexts where delight IS the goal.)
Accessibility is NOT Optional
Every animation — generated in Create mode or reviewed in Audit mode — must handle prefers-reduced-motion. No exceptions. See references/accessibility.md.
---
Reference Index
| File | Contents | Load When |
|---|---|---|
| Motion Cookbook | All motion recipes — enter/exit, easing, springs, clip-path, @property, FLIP, scroll-driven | Create mode (always); Audit mode for implementation recommendations |
| Creation Gotchas | Claude's failure modes when writing motion | Create mode (always) |
| Audit Checklist | Systematic audit checklist | Audit mode (always) |
| Anti-Checklist | Quality gate — AI-slop motion categories + anti-patterns to flag | Audit mode (always) |
| Emil Kowalski | Restraint philosophy, frequency rule, decision frameworks | Either mode, if Emil is weighted |
| Jakub Krehel | Production polish philosophy and decision frameworks | Either mode, if Jakub is weighted |
| Jhey Tompkins | Playful experimentation philosophy and frameworks | Either mode, if Jhey is weighted |
| Accessibility | prefers-reduced-motion, vestibular safety | Both modes (mandatory) |
| Performance | GPU optimization, will-change, layout thrash | Either mode, for complex animations |
| Output Format | Audit report template — HTML mode (default) + terminal mode (flag) | Audit mode only |
| Demo Shell | Visual container template for per-finding demo cards in the HTML report | Audit mode, HTML output |
Workflow Index
| Workflow | Purpose |
|---|---|
| Create | Build interactive components with purposeful motion |
| Audit | Review existing motion design, produce a per-designer report |
Accessibility
This is not optional. Motion can cause discomfort, nausea, or distraction for many users.
---
Respect User Preferences
@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;
}
}What this does: Effectively disables animations while preserving final states (so layouts don't break).
---
Functional vs. Decorative Motion
| Type | Purpose | Reduced Motion Behavior |
|---|---|---|
| Functional | Indicates state changes, spatial relationships, orientation | May need alternative (instant state change, no transition) |
| Decorative | Pure delight, visual interest | Can be fully removed |
The test: Does removing this animation break the user's ability to understand what happened? If yes, it's functional.
---
Motion Sensitivity Considerations
- Avoid large-scale motion (full-screen transitions, parallax)
- Avoid continuous or looping animations that can't be paused
- Provide pause controls for any ambient animation
- Be especially careful with vestibular triggers: zooming, spinning, parallax
---
Implementation Checklist
- [ ] Tested with
prefers-reduced-motion: reduceenabled - [ ] No vestibular triggers (excessive zoom, spin, parallax)
- [ ] Looping animations can be paused
- [ ] Functional animations have non-motion alternatives
- [ ] Users can complete all tasks with animations disabled
Anti-Checklist
This file is the audit's quality gate. The categories below describe motion patterns to flag in audited code — AI-slop tells at the top (where most 2026 motion problems live), followed by perspective-specific anti-patterns from Emil, Jakub, and Jhey, then general motion mistakes and code-shaped red flags. When audited code matches a pattern here, the audit surfaces a finding and the agent generates a per-finding motion suggestion by reading the relevant philosophy reference (emil-kowalski.md, jakub-krehel.md, jhey-tompkins.md).
The file frames patterns as "things to flag," not "mistakes to avoid" — language that makes the audit's adversarial posture explicit.
---
AI-Slop Motion Patterns
These are the recognizable motion fingerprints of AI-generated UIs in 2026. They're not always wrong in isolation — what makes them slop is frequency and uniformity. Finding one instance is normal polish; finding the same pattern slapped across the codebase is the tell. Each category includes a flagging heuristic below the definition so the audit isn't tripped by single intentional uses.
---
Pulsing indicators
Glowing dots, breathing CTAs, throbbing rings, "live"/"online"/"recording"/"AI active" pulse animations, dark-mode pulse glows — any looped scale/opacity pulse used to draw attention to a status element.
Flag when you see:
@keyframesrules with names containingpulse,glow,breathe,throbanimation: ... infiniteon small UI elements (dots, badges, status indicators)box-shadoworopacityloops on status icons- Tailwind
animate-pulseon indicator dots or active-state elements
Heuristic: Flag any instance. Pulsing indicators are almost always slop — the only exception is a single brand element with explicit design rationale stated in code comments or design docs.
Fix lens: Emil — purposeful restraint. See references/emil-kowalski.md.
---
Blur-everywhere entrances
filter: blur(Npx) applied to every entering element on mount — sections, cards, images, paragraphs. Jakub's enter recipe (opacity + translateY + blur) is excellent in moderation; AI-slop versions apply it uniformly across the page.
Flag when you see:
initial={{ filter: 'blur(Npx)' }}orfrom { filter: blur(Npx); }on multiple distinct components in the same view- Identical blur values (e.g.,
blur(4px)) repeated across components without context distinction - Blur on text-bearing entrances (headings, paragraphs) where it impairs first-paint readability
Heuristic: Flag when ≥3 distinct components in the same view share the same filter: blur() enter pattern. Single uses with intent (a hero element, a modal) are fine.
Fix lens: Jakub — production polish, but selective. See references/jakub-krehel.md.
---
Hover-scale-on-everything
transform: scale(1.0X) on :hover applied to every card, button, and image without intent. The micro-bounce-on-hover feels polished in moderation; AI-slop versions slap it on indiscriminately.
Flag when you see:
transitionrules withtransform: scale(1.0X)on:hoveracross multiple card/button/image components- Identical scale values (e.g.,
scale(1.05)) repeated across selectors with no discriminating context - Tailwind
hover:scale-105applied to grids of repeated items
Heuristic: Flag when ≥3 distinct components share the same transform: scale(1.0X) on :hover with no other discriminating selector context. Single intentional uses (e.g., a primary CTA) are fine.
Fix lens: Emil for utility-shaped elements (none); Jakub for product-shaped elements (selective). See references/emil-kowalski.md and references/jakub-krehel.md.
---
Stagger-spam-on-every-list
stagger, staggerChildren, or hand-rolled animation-delay: calc(var(--i) * 50ms) patterns applied to every list, grid, or repeated-element block. Jhey-style stagger on a deliberate moment is delightful; AI-slop spreads it across every list as default polish.
Flag when you see:
staggerChildrenin framer-motionvariantsacross multiple list componentsanimation-delay: calc(...)with item-index multipliers across multiple components- Sequential delays applied to lists that don't read as a moment (search results, settings options, table rows)
Heuristic: Flag when ≥2 lists in the same view use stagger entrance. One intentional moment is fine; two or more is the tell.
Fix lens: Emil for utility lists (no stagger); Jhey for delight moments (selective). See references/emil-kowalski.md and references/jhey-tompkins.md.
---
Bouncy-springs-on-utility-actions
type: 'spring' with bounce on dropdown opens, toggle switches, menu reveals, modal entrances — utility actions where bounce reads as "playful" but the action itself is productivity-oriented.
Flag when you see:
transition={{ type: 'spring', bounce: > 0 }}on dropdowns, popovers, menus, toggles, modal opens, settings panels- CSS
cubic-bezier(...)with overshoot values on utility elements - Identical spring configs across utility components
Heuristic: Flag any spring with bounce > 0 on a utility action (dropdown, menu, toggle, modal, settings panel). Bounce belongs on playful elements — celebration moments, kids apps, intentional delight — not productivity UI.
Fix lens: Emil — speed and purpose. See references/emil-kowalski.md.
---
Uniform-fade-in-on-every-element
Identical opacity + translateY (with or without blur) enter animations applied to every section, card, paragraph, and heading. The "polished entrance" treatment from Jakub used uniformly across the page, regardless of element type or context.
Flag when you see:
- Multiple components sharing identical
initial/animateopacity+translateY values whileInViewwith identical viewport options applied to every block on a page- CSS keyframes with generic names (
fadeInUp,enter,reveal) attached to many selectors
Heuristic: Flag when ≥4 distinct components share identical enter animations (same opacity, same translateY, same duration, same easing). Three is acceptable polish baseline; four is uniformity slop.
Fix lens: Jakub — selective polish with hierarchy. See references/jakub-krehel.md.
---
Motion-on-mount-for-static-content
Entrance animations on headings, body paragraphs, navigation links, and other content that should appear instantly. The "fade in everything" pattern that delays reading and makes the page feel sluggish.
Flag when you see:
initial/animateon<h1>,<h2>,<p>,<nav>elementswhileInViewon body copy (paragraphs, articles, prose)animationrules on text-only components without functional reason
Heuristic: Flag any motion on a text-only or navigation element when the motion's only purpose is the entrance itself. Carousels, sliders, and hero animations are fine when the motion serves a function (orientation, narrative pacing, attention direction).
Fix lens: Emil — animations should serve a purpose, not announce themselves. See references/emil-kowalski.md.
---
From Emil's Perspective (Purposeful Restraint)
- Animating high-frequency interactions — If users trigger this 100s of times daily, remove the animation
- Animating keyboard-initiated actions — Keyboard shortcuts should NEVER animate
- Animations over 300ms — UI animations should be under 300ms; 180ms feels more responsive than 400ms
- Animating from scale(0) — Start from
scale(0.9)or higher for natural motion - Same tooltip behavior everywhere — First tooltip: delayed + animated. Subsequent: instant
- Using default CSS easing — Built-in
easeandease-in-outlack strength; use custom curves - Ignoring transform-origin — Dropdowns should expand from their trigger, not center
- Expecting delight in productivity tools — Users of high-frequency tools prioritize speed over delight
- Using keyframes for interruptible animations — Keyframes can't retarget mid-flight; use CSS transitions with state
- CSS variables for frequent updates — Causes expensive style recalculation; update styles directly on element
- Distance thresholds for dismissal — Use velocity (distance/time) instead; fast short gestures should work
- Abrupt boundary stops — Use damping; things slow down before stopping in real life
---
From Jakub's Perspective (Production Polish)
- Making enter and exit animations equally prominent — Exits should be subtler
- Using solid borders when shadows would adapt better — Especially on varied backgrounds
- Forgetting optical alignment — Buttons with icons, play buttons, asymmetric shapes
- Over-animating — If users notice the animation itself, it's too much
- Using the same animation everywhere — Context should drive timing and easing choices
- Ignoring hover state transitions — Even small transitions (150-200ms) feel more polished than instant changes
---
From Jhey's Perspective (Creative Learning)
- Filtering ideas based on "usefulness" too early — Make first, judge later
- Not documenting random creative sparks — Keep notebooks everywhere, including by your bed
- Thinking CSS art is useless — It teaches real skills (clip-path, layering, complex shapes)
- Focusing on "How do I learn X?" instead of "How do I make Y?" — Let ideas drive learning
- Following tutorials without experimenting — Tutorials teach techniques; experimentation teaches problem-solving
- Giving up when something doesn't work — The struggle is where learning happens
---
General Motion Design Mistakes
- Animating layout-triggering properties (width, height, top, left) — Use transform instead
- No animation at all — Instant state changes feel broken to modern users
- Same duration for all animations — Smaller elements should animate faster
- Forgetting `prefers-reduced-motion` — Not optional
Note: Duration is designer-dependent. Emil prefers under 300ms for productivity tools. Jakub and Jhey may use longer durations when polish or effect warrants it.
---
Red Flags in Code Review
Watch for these patterns:
// BAD: Animating layout properties
animate={{ width: 200, height: 100 }}
// GOOD: Use transform
animate={{ scale: 1.2 }}// BAD: Same animation for enter and exit
initial={{ opacity: 0, y: 20 }}
exit={{ opacity: 0, y: 20 }}
// GOOD: Subtler exit
initial={{ opacity: 0, y: 20 }}
exit={{ opacity: 0, y: -8 }}/* BAD: No reduced motion support */
.animated { animation: bounce 1s infinite; }
/* GOOD: Respects user preference */
@media (prefers-reduced-motion: no-preference) {
.animated { animation: bounce 1s infinite; }
}/* BAD: will-change everywhere */
* { will-change: transform; }
/* GOOD: Targeted will-change */
.animated-button { will-change: transform, opacity; }// BAD: Animating from scale(0) (Emil)
initial={{ scale: 0 }}
animate={{ scale: 1 }}
// GOOD: Start from higher scale
initial={{ scale: 0.9, opacity: 0 }}
animate={{ scale: 1, opacity: 1 }}// Per Emil: Too slow for productivity UI
transition={{ duration: 0.4 }}
// Per Emil: Fast, snappy (but Jakub/Jhey might use 0.4 for polish)
transition={{ duration: 0.18 }}/* BAD: Dropdown expanding from center (Emil) */
.dropdown {
transform-origin: center;
}
/* GOOD: Origin-aware animation */
.dropdown {
transform-origin: top center;
}/* BAD: Keyframes can't be interrupted (Emil) */
@keyframes slideIn {
from { transform: translateY(100%); }
to { transform: translateY(0); }
}
.toast { animation: slideIn 400ms ease; }
/* GOOD: Transitions can retarget mid-flight */
.toast {
transform: translateY(100%);
transition: transform 400ms ease;
}
.toast.mounted {
transform: translateY(0);
}// BAD: CSS variables cause cascade recalc (Emil)
element.style.setProperty('--drag-y', `${y}px`);
// GOOD: Direct style update
element.style.transform = `translateY(${y}px)`;// BAD: Distance threshold for dismissal (Emil)
if (dragDistance > 100) dismiss();
// GOOD: Velocity-based (fast short gestures work)
const velocity = dragDistance / elapsedTime;
if (velocity > 0.11) dismiss();Audit Checklist
Use this checklist when reviewing motion design in any UI code.
---
Philosophy Check (Do First)
- [ ] How often will users trigger this? (Frequent = less/no animation — Emil's rule)
- [ ] Is this keyboard-initiated? (If yes, don't animate — Emil's rule)
- [ ] Does this animation serve a purpose? (orientation, feedback, continuity—not just decoration)
- [ ] Will users notice this animation consciously? (If yes for production UI, probably too much)
- [ ] Have I tested this with `prefers-reduced-motion: reduce`?
- [ ] Does this feel natural after the 10th interaction? (Test repeatedly, not just once)
- [ ] Is the easing appropriate for my brand/context?
- [ ] Is the duration appropriate for context? (Emil prefers under 300ms; Jakub/Jhey may use longer for polish or effect)
---
Motion Gap Analysis (Check BEFORE Reviewing Existing Animations)
Conditional UI changes that lack animation are often worse than poorly-tuned animations:
- [ ] Searched for conditional renders —
{condition && <Component />}patterns - [ ] Searched for ternary swaps —
{condition ? <A /> : <B />}patterns - [ ] Searched for dynamic inline styles —
style={{ prop: dynamicValue }}without transition - [ ] Each conditional render either has AnimatePresence wrapper OR doesn't need animation (static content)
- [ ] Mode switches (tabs, toggles) animate their content changes, not just the switch itself
- [ ] Settings panels with conditional controls have enter/exit animations
- [ ] Expandable sections animate height, not just show/hide
- [ ] Loading → Content transitions are smooth, not instant swaps
---
Enter/Exit States
- [ ] Enter animations combine opacity + translateY + blur
- [ ] Exit animations are subtler than enters (smaller translateY, same blur/opacity)
- [ ]
animation-fill-mode: backwardsused for delayed sequences - [ ] Elements don't flash before their delayed animation starts
---
Easing & Timing
- [ ] Appropriate easing for context (not default
easeeverywhere) - [ ] Custom Bézier curves used instead of built-in easing (Emil's rule)
- [ ] Spring animations for interactive elements
- [ ] Durations appropriate for context (Emil: under 300ms; others: whatever serves the design)
- [ ] Consistent timing values across related animations
- [ ] Transform-origin matches interaction source (dropdowns from trigger)
---
Visual Polish
- [ ] Shadows instead of borders where background varies
- [ ] Gradients using oklch color space for smooth blending
- [ ] Blur used intentionally as a state signal
---
Optical Alignment
- [ ] Buttons with icons have adjusted padding
- [ ] Asymmetric icons (play, arrows) are visually centered
- [ ] Text and icons feel balanced
---
State Transitions
- [ ] Icon swaps are animated (opacity, scale, blur)
- [ ] Loading states have smooth transitions
- [ ] Hover states have transitions (150-200ms minimum)
- [ ] Button press has scale feedback (
scale(0.97)on:active) - [ ] Elements don't animate from
scale(0)(use0.9+instead)
---
Interaction Patterns (Emil's Rules)
- [ ] Tooltips: first delayed + animated, subsequent instant
- [ ] Animations are interruptible (can change mid-animation)
- [ ] Clip-path used for reveals instead of width/height
- [ ] High-frequency actions have minimal or no animation
- [ ] Keyboard shortcuts don't animate
---
Performance
- [ ]
will-changeused sparingly and specifically - [ ] Animations use transform/opacity (not layout properties)
- [ ] Tested on low-end devices
- [ ] No continuous animations without purpose
- [ ] CSS transitions (not keyframes) for interruptible animations (Emil)
- [ ] Direct style updates for drag operations (not CSS variables) (Emil)
- [ ] Velocity-based thresholds (not distance) for swipe dismiss (Emil)
---
Accessibility
- [ ] Respects
prefers-reduced-motion - [ ] No vestibular triggers (excessive zoom, spin, parallax)
- [ ] Looping animations can be paused
- [ ] Functional animations have non-motion alternatives
---
Quick Reference: Severity Levels
Critical (Must Fix):
- Missing
prefers-reduced-motionsupport - Animating layout properties (width, height, top, left)
- No exit animations (elements just disappear)
- Motion gaps in primary UI — Conditional controls/panels that snap in/out without animation
- Animating keyboard-initiated actions (Emil)
- Animations on high-frequency actions (100s/day)
Important (Should Fix):
- Exit animations as prominent as enter animations
- Missing blur in enter animations
- Animating from
scale(0)instead of0.9+(Emil) - Default CSS easing instead of custom curves (Emil)
- Wrong transform-origin on dropdowns/popovers (Emil)
Context-Dependent (Check Against Designer Perspective):
- Durations over 300ms (Emil flags this; Jakub/Jhey may approve for polish)
Nice to Have:
- Optical alignment refinements
- oklch color space for gradients
- Spring animations instead of ease
- Button scale feedback on press
- Tooltip delay pattern (first delayed, subsequent instant)
Creation Gotchas
Where Claude typically fails when writing motion (as opposed to auditing it). Self-check generated code against every item before presenting.
---
Motion that shouldn't exist
- Don't animate just because you can. Decorative motion added "for polish" is the default failure mode. Every animation needs a purpose — feedback, orientation, or continuity. If you can't name the purpose, remove it.
- Don't animate high-frequency interactions. If the user triggers it dozens of times a session, motion becomes friction. Instant is correct.
- Don't animate keyboard-initiated actions. Keyboard shortcuts should never animate — the user wants speed, not a show.
- Don't add looping attention-seeking motion. No pulsing dots, glowing status rings, breathing CTAs, throbbing indicators, or any looped scale/opacity pulse to draw the eye. They age badly, harm accessibility, and rarely serve the user. Use a static treatment unless the user explicitly asks for a pulse.
Wrong defaults
- Don't start from `scale(0)`. It produces unnatural motion. Start from
scale(0.9)or higher. - Don't use bare `ease` or `ease-in-out`. Built-in curves lack strength. Use a custom
cubic-bezieror a spring. - Don't give enter and exit equal weight. Exits should be subtler — smaller translate, the user's attention is already moving on.
- Don't use one duration for everything. Smaller elements animate faster. Match duration to element size and context.
- Don't ignore `transform-origin`. Dropdowns, popovers, and tooltips should expand from their trigger, not from center.
Performance failures
- Don't animate layout properties.
width,height,top,left,margin,paddingtrigger reflow. Usetransformandopacity. - Don't sprinkle `will-change` everywhere. It's a targeted hint for elements about to animate, not a global fix.
- Don't use keyframes for interruptible animations. Keyframes can't retarget mid-flight. Use state-driven CSS transitions for anything the user can re-trigger rapidly.
Accessibility omissions
- Don't ship motion without `prefers-reduced-motion`. Every animation you generate needs a reduced-motion path. This is not optional and not a follow-up — include it in the same code.
- Don't use vestibular triggers casually. Large-scale zoom, spin, and parallax can cause genuine discomfort. Avoid unless the design explicitly calls for it, and gate them behind reduced-motion.
Context blindness
- Don't apply one designer's rules universally. Emil's sub-300ms restraint is wrong for a kids' app; Jhey's elastic playfulness is wrong for a banking dashboard. Confirm the weighting before generating.
- Don't ignore the existing codebase. If the project already animates with 500ms springs, a new 150ms ease-out component will feel foreign. Match established conventions unless they are the thing being fixed.
<!--
Demo Shell — design-motion-principles
=====================================
Minimal, isolated reference for a single demo card. The agent reads this
during STEP 3 of the audit workflow (see ../SKILL.md) and uses it as the
per-finding template — one .demo block per Critical or Important finding
(Opportunities don't get demo cards).
The full worked example with five demo cards in context lives in
references/report-template.html. This file is intentionally minimal:
one card, every contract visible, no report scaffolding.
How the agent uses this file
----------------------------
1. Copy the entire <style> block into the report's <head>. The shell's
tokens, .demo layout, stage colors, segmented control, and the
prefers-reduced-motion guard are SHARED across every demo card in the
report and must not be duplicated per finding.
2. For each finding {n} (1-indexed across the whole report):
a. Replace the MOTION-CODE-SLOT-{n} comment with the per-finding
@keyframes m{n} block AND the .demo-{n}__mt selector rule.
Suffix {n} so multiple findings cannot collide on keyframe
names or selectors.
b. Replace the DEMO-CARD-MOTION-SLOT-{n} comment in the .demo__stage
markup with the actual motion-target element. Its class must be
.demo-{n}__mt so it matches the rules above.
c. Set .demo__title to a short title for the recommended motion
(e.g., "Quick tab crossfade", "Sheet enter (mirror for exit)").
d. Set .demo__timing to the duration plus easing (e.g.,
"180ms · ease-out", "300ms · ease-out-quint"). The subhead
ALWAYS renders — populate it for every demo so card heights
stay consistent across the report.
e. Renumber the four radio ids from st1-* to st{n}-*, and the
labels' for= attributes to match.
3. Per-finding code MUST honor these contracts:
- Do NOT redefine the shell's tokens (--ink, --paper, --surface-2,
--line, --line-strong, --st-bg, --st-fg, --st-line, --st-dim,
--sans, --mono). Use them via var().
- Do NOT modify the prefers-reduced-motion block. The shell's
guard collapses all .demo-{n}__mt animations to none. The
per-finding @keyframes 100% state MUST match the motion-target
element's default static rendering so the reduce-motion fallback
shows the correct final visual.
- Per-finding @keyframes use the 0% / ~60% / 100% cadence:
0% = start state, ~60% = motion complete (~1.8s in),
100% = hold (~1.2s). The shell uses animation-duration: 3s.
4. Motion targets and ANY UI primitives inside the stage (.ui-btn,
.ui-card, .ui-row, .ui-check, .ui-num, .ui-label, badge, etc.)
use --st-bg / --st-fg / --st-line / --st-dim — NEVER --accent or
other page tokens. This guarantees the demo contrasts correctly
when its stage is locked to a different theme than the report.
5. Demo cards are non-interactive. The stage toggle radios are the
only interactive element. tabindex on the radios is fine; the
stage itself stays out of focus order.
Loop pacing
-----------
animation-duration: 3s. Keyframes 0% / ~60% / 100%. Motion 0–60% ≈ 1.8s,
hold 60–100% ≈ 1.2s, then restart. Every demo in a report uses this
cadence so all cards share the same rhythm.
Standalone preview
------------------
Opening this file directly in a browser shows one .demo card with the
loop indicator, the segmented Auto/Light/Dark stage toggle, and a
placeholder motion target (a simple shape that fades in). No real
per-finding motion plays — the agent injects motion per finding when
this template is embedded in a report. The shell also honors the
viewer's prefers-color-scheme for standalone rendering.
-->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Demo Shell — design-motion-principles</title>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Familjen+Grotesk:wght@400;500;600;700&family=Public+Sans:wght@400;500;600;700&family=Geist+Mono:wght@400;500;600&display=swap" rel="stylesheet">
<style>
:root {
/* Cool slate-graphite neutrals (hue 255). In the full report these
are overridden by a global theme toggle; here the shell flips via
prefers-color-scheme for standalone preview. */
--ink: oklch(0.155 0.006 255);
--surface: oklch(0.195 0.007 255);
--surface-2: oklch(0.235 0.008 255);
--paper: oklch(0.945 0.004 255);
--paper-dim: oklch(0.800 0.006 255);
--muted: oklch(0.680 0.008 255);
--faint: oklch(0.505 0.008 255);
--line: oklch(0.95 0.01 255 / 0.09);
--line-strong:oklch(0.95 0.01 255 / 0.16);
--display: "Familjen Grotesk", "Hanken Grotesk", system-ui, sans-serif;
--sans: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
--mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
}
@media (prefers-color-scheme: light) {
:root {
--ink: oklch(0.985 0.003 255);
--surface: oklch(0.965 0.004 255);
--surface-2: oklch(0.940 0.005 255);
--paper: oklch(0.180 0.006 255);
--paper-dim: oklch(0.330 0.008 255);
--muted: oklch(0.475 0.010 255);
--faint: oklch(0.640 0.009 255);
--line: oklch(0.180 0.010 255 / 0.12);
--line-strong:oklch(0.180 0.010 255 / 0.22);
}
}
* { box-sizing: border-box; }
body {
background: var(--ink);
color: var(--paper);
font-family: var(--sans);
margin: 0;
padding: 48px;
display: flex;
justify-content: center;
}
/* visually-hidden (stage-toggle radios) */
.vh { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
/* ───────────── Demo card ───────────── */
.demo { position: relative; width: 380px; }
.demo__bar { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.demo__meta { min-width: 0; }
.demo__title { display: block; font-size: 13.5px; font-weight: 600; color: var(--paper); line-height: 1.3; }
.demo__timing { display: block; font-family: var(--mono); font-size: 11px; color: var(--muted); margin-top: 2px; font-variant-numeric: tabular-nums; }
.demo__controls { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.demo__loop { font-family: var(--mono); font-size: 12px; color: var(--faint); }
/* segmented Auto / Light / Dark stage toggle (pure CSS).
Auto = follow ambient theme via --surface-2 + --paper.
Light / Dark = locked overrides (hardcoded values, ignore ambient). */
.seg { display: inline-flex; border: 1px solid var(--line-strong); border-radius: 100px; overflow: hidden; }
.seg label { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); padding: 4px 9px; cursor: pointer; user-select: none; transition: background 0.15s ease, color 0.15s ease; }
.demo input[id$="-a"]:checked ~ .demo__bar .seg label[for$="-a"],
.demo input[id$="-l"]:checked ~ .demo__bar .seg label[for$="-l"],
.demo input[id$="-d"]:checked ~ .demo__bar .seg label[for$="-d"] {
background: color-mix(in oklch, var(--paper) 12%, transparent);
color: var(--paper);
}
.demo__stage {
/* AUTO default — stage uses the ambient elevated surface */
--st-bg: var(--surface-2);
--st-fg: var(--paper);
--st-line: var(--line-strong);
--st-dim: color-mix(in oklch, var(--paper) 55%, transparent);
background: var(--st-bg); color: var(--st-fg);
border: 1px solid var(--line); border-radius: 10px;
padding: 32px 24px; min-height: 168px;
display: flex; align-items: center; justify-content: center; overflow: hidden;
}
/* Locked Light: hardcoded light, regardless of ambient theme */
.demo input[id$="-l"]:checked ~ .demo__stage {
--st-bg: oklch(0.985 0.003 255);
--st-fg: oklch(0.180 0.006 255);
--st-line: oklch(0.180 0.010 255 / 0.18);
--st-dim: oklch(0.180 0.010 255 / 0.45);
}
/* Locked Dark: hardcoded dark, regardless of ambient theme */
.demo input[id$="-d"]:checked ~ .demo__stage {
--st-bg: oklch(0.180 0.006 255);
--st-fg: oklch(0.985 0.003 255);
--st-line: oklch(0.985 0.010 255 / 0.18);
--st-dim: oklch(0.985 0.010 255 / 0.50);
}
/* Generic UI primitives for use inside motion targets. All theme via
stage tokens, NEVER page tokens — so they contrast correctly when a
stage is locked to a different theme than the report. */
.ui-btn { display: inline-flex; align-items: center; justify-content: center; padding: 9px 18px; border-radius: 8px; background: var(--st-fg); color: var(--st-bg); font-family: var(--sans); font-size: 13px; font-weight: 600; }
.ui-card { background: var(--st-bg); border: 1px solid var(--st-line); border-radius: 10px; padding: 14px 16px; min-width: 180px; box-shadow: 0 8px 24px oklch(0 0 0 / 0.12); }
.ui-row { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--st-fg); }
.ui-check { width: 22px; height: 22px; border-radius: 7px; background: var(--st-fg); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ui-check svg { width: 13px; height: 13px; stroke: var(--st-bg); }
.ui-num { font-family: var(--display); font-size: 34px; font-weight: 700; color: var(--st-fg); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.ui-label { font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--st-dim); }
/* prefers-reduced-motion — disables every per-finding animation and
hides the loop indicator. The per-finding @keyframes 100% state
must match the motion-target's default rendering so the reduce
fallback shows the correct final visual. */
@media (prefers-reduced-motion: reduce) {
.demo__loop { display: none; }
[class*="__mt"], [class*="__mt"] * { animation: none !important; transition: none !important; }
}
/* MOTION-CODE-SLOT-{n}
Per-finding @keyframes and .demo-{n}__mt rules go here. {n} is the
finding's 1-indexed position across the report.
Example shape (replace per finding — wrap in
@media (prefers-reduced-motion: no-preference) { ... }):
@media (prefers-reduced-motion: no-preference) {
@keyframes m1 {
0% { opacity: 0; transform: translateY(8px); filter: blur(4px); }
60% { opacity: 1; transform: translateY(0); filter: blur(0); }
100% { opacity: 1; transform: translateY(0); filter: blur(0); }
}
.demo-1__mt {
animation: m1 3s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}
}
*/
/* Placeholder motion for standalone preview only — agent strips this
when composing the report. Demonstrates the 0 / 60 / 100 cadence. */
@media (prefers-reduced-motion: no-preference) {
@keyframes m-placeholder {
0% { opacity: 0; transform: translateY(8px); filter: blur(4px); }
60% { opacity: 1; transform: translateY(0); filter: blur(0); }
100% { opacity: 1; transform: translateY(0); filter: blur(0); }
}
.demo-1__mt {
animation: m-placeholder 3s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}
}
</style>
</head>
<body>
<div class="demo">
<input class="vh" type="radio" name="st1" id="st1-a" checked>
<input class="vh" type="radio" name="st1" id="st1-l">
<input class="vh" type="radio" name="st1" id="st1-d">
<div class="demo__bar">
<div class="demo__meta">
<span class="demo__title">Recommended motion title</span>
<span class="demo__timing">300ms · ease-out</span>
</div>
<div class="demo__controls">
<div class="seg">
<label for="st1-a">Auto</label>
<label for="st1-l">Light</label>
<label for="st1-d">Dark</label>
</div>
<span class="demo__loop">↻</span>
</div>
</div>
<div class="demo__stage">
<!-- DEMO-CARD-MOTION-SLOT-{n}
Per-finding motion-target element goes here. Its class must
match the rules in MOTION-CODE-SLOT-{n} above:
<div class="demo-{n}__mt">...content...</div>
The element's contents are agent-determined (a button shape,
a card, an icon, a row of items for stagger demos, a number,
a badge, etc.). All inner UI primitives use the stage tokens
(--st-fg / --st-bg / --st-line / --st-dim) — NEVER page tokens. -->
<div class="demo-1__mt">
<div class="ui-card">
<div class="ui-label" style="margin-bottom: 6px;">Placeholder</div>
<div class="ui-row">
<span class="ui-check"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="3.5"><path d="M5 13l4 4L19 7"/></svg></span>
<span>(motion preview renders here per finding)</span>
</div>
</div>
</div>
</div>
</div>
</body>
</html>
Emil Kowalski's Animation Principles
Emil Kowalski is a Design Engineer at Linear (previously Vercel). Creator of Sonner, Vaul, and the "Animations on the Web" course. His approach emphasizes restraint, speed, and purposeful motion.
This file is Emil's philosophy and decision frameworks — the judgment for whether and when to animate. Implementation code lives in motion-cookbook.md (cross-referenced below).
---
Core Philosophy: Restraint & Purpose
Emil's defining contribution to motion design thinking is knowing when NOT to animate.
"The goal is not to animate for animation's sake, it's to build great user interfaces."
His key question for any interaction: "Should this animate at all?"
The Frequency Rule
Animation appropriateness depends on interaction frequency:
| Frequency | Recommendation |
|---|---|
| Rare (monthly) | Delightful, morphing animations welcome |
| Occasional (daily) | Subtle, fast animations |
| Frequent (100s/day) | No animation or instant transitions |
| Keyboard-initiated | Never animate |
The Raycast example: A tool used constantly throughout the day benefits from zero animation. Users with clear goals "don't expect to be delighted" and prioritize frictionless workflow.
Speed is Non-Negotiable
"UI animations should generally stay under 300ms."
A 180ms animation feels more responsive than 400ms. Speed creates perceived performance. When in doubt, go faster.
---
The 7 Practical Animation Tips
Emil's decision checklist. Code for each is in the cookbook section noted.
1. Scale your buttons — Subtle scale(0.97) on :active for immediate tactile feedback. → cookbook §10 2. Don't animate from `scale(0)` — It creates unnatural motion. Start from scale(0.9) or higher. → cookbook §10 3. Tooltip delay patterns — First tooltip in a group: delay + animation. Subsequent: instant. → cookbook §10 4. Custom easing is essential — "Easing is the most important part of any animation. It can make a bad animation feel great." Built-in ease/ease-in-out lack strength; use custom Bézier curves (easing.dev, easings.co). → cookbook §2 5. Origin-aware animations — Motion should originate from its logical source; a dropdown expands from its trigger, not from center. → cookbook §13 6. Keep animations fast — Under 300ms for UI; remove animation entirely for high-frequency interactions. 7. Use blur when nothing else works — filter: blur(2px) masks imperfections during rough state transitions. → cookbook §10
---
Signature Techniques (decision context — code in cookbook)
| Technique | When Emil reaches for it | Cookbook |
|---|---|---|
| Clip-path animations | Reveals and tab transitions — hardware-accelerated, no layout shift, no extra DOM | §9 |
| Spring physics | Any value that should interpolate smoothly rather than snap (e.g. mouse position) | §12 |
| CSS transitions over keyframes | Anything the user can rapidly re-trigger — keyframes can't retarget mid-flight | §11 |
| Direct style updates | Frequent updates like drag — CSS variables cause cascade recalculation | §11 |
| Momentum-based dismissal | Swipe-to-dismiss — use velocity, not distance thresholds | §11 |
---
Interruptibility
Great animations can be interrupted mid-play and respond naturally. Framer Motion supports this natively; CSS transitions allow smooth interruption before completion. Test by clicking rapidly — animations should blend, not queue.
---
When to Use Each Approach
| Context | Approach |
|---|---|
| Keyboard shortcuts | No animation |
| High-frequency tool | Minimal or no animation |
| Daily-use feature | Fast, subtle animation (180-250ms) |
| Onboarding/first-time | Delightful animations welcome |
| Marketing/landing page | Full creative expression |
| Banking/serious UI | Minimal, functional motion |
| Playful brand | Bouncy, elastic easing appropriate |
---
Invisible Quality: Lessons from Sonner & Vaul
Emil's open-source libraries (Sonner for toasts, Vaul for drawers) reveal his philosophy in shipped code. The throughline: every detail serves invisible quality — users shouldn't notice polished interactions, they should just feel right.
"When a feature functions as you assume it should, you proceed without giving it a second thought, which is our goal."
Details that matter: matching native motion curves for familiarity (Vaul uses iOS's cubic-bezier(0.32, 0.72, 0, 1)), damping near boundaries ("things in real life don't suddenly stop, they slow down first"), multi-touch protection, pointer capture during drags, pausing timers when the tab is inactive.
Sonner Defaults
| Setting | Value | Rationale |
|---|---|---|
| Duration | 4000ms | Long enough to read, short enough to not annoy |
| Animation | 400ms ease | Smooth but snappy |
| Position | bottom-right | Convention, out of primary content |
| Dismissible | true | User control by default |
Vaul Defaults
| Setting | Value | Rationale |
|---|---|---|
| Duration | 500ms | Match iOS sheet feel |
| Easing | cubic-bezier(0.32, 0.72, 0, 1) | iOS-native curve |
| Modal | true | Focus management, overlay |
| Direction | bottom | Convention for mobile sheets |
---
Emil vs. Jakub vs. Jhey
| Aspect | Emil | Jakub | Jhey |
|---|---|---|---|
| Focus | Restraint & speed | Subtle polish | Playful experimentation |
| Key question | "Should this animate?" | "Is this subtle enough?" | "What could this become?" |
| Signature technique | Frequency-based decisions | Blur + opacity + translateY | CSS custom properties |
| Ideal context | High-frequency tools | Production polish | Learning & exploration |
Synthesis: Use Emil's framework to decide IF you should animate. Use Jakub's techniques for HOW to animate in production. Use Jhey's approach for learning and experimentation.
Jakub Krehel's Animation Principles
Jakub Krehel is a design engineer known for his work at jakub.kr. His approach emphasizes subtle production polish — animations that enhance the experience invisibly, designed for real client work where users interact repeatedly.
This file is Jakub's philosophy and decision frameworks — the judgment for how polished and how subtle motion should be. Implementation code lives in motion-cookbook.md (cross-referenced below).
---
Core Philosophy: Invisible Enhancement
"The best animation is that which goes unnoticed."
His key question for any interaction: "Is this subtle and polished enough for production?"
Jakub's work embodies refinement for production use. His animations are:
- Barely noticeable — If users consciously notice the animation, it's probably too much
- Production-ready — Designed for real client work, not demos
- Contextually appropriate — Adapts to light mode, varied backgrounds, real content
- Subtle over flashy — The goal is to make interfaces feel smooth and responsive, not impressive
The best compliment: "This feels really nice" — not "cool animation!"
The test: If you remove the animation, do users feel something is missing? Good. If users comment "nice animation!" every time they see it? Too prominent.
---
When to Apply Jakub's Mindset
- Production applications and client work
- Professional/enterprise interfaces
- When users will interact repeatedly (animations must not get tiresome)
- When accessibility and performance are critical
- When you need polish without distraction
---
Signature Techniques (decision context — code in cookbook)
| Technique | When Jakub reaches for it | Cookbook |
|---|---|---|
| Enter recipe (opacity + translateY + blur) | Any element appearing — blur creates a "materializing" feel more physical than fade alone | §1 |
| Subtler exits | Always — exits don't need the same movement or attention as enters; the user is moving on | §1 |
Spring animations (bounce: 0) | Production motion — smooth deceleration without overshoot; reserve bounce > 0 for playful contexts | §2 |
| Shadows instead of borders | Light mode on varied backgrounds — shadows adapt via transparency where solid borders clash | §3 |
| oklch gradients | Any gradient — interpolates through perceptually uniform space, avoiding muddy midpoints | §3 |
| Blur as a signal | Materializing in/out — blur→sharp = entering focus, sharp→blur = losing relevance | §3 |
| Optical alignment | Buttons with icons, play buttons, asymmetric shapes — trust your eyes over math | §4 |
| Animated icon swaps (opacity + scale + blur) | Contextual icon changes (copy→check) — instant swaps feel jarring and get missed | §5 |
Shared layout via layoutId | Smooth FLIP transitions between different components (card→modal) | §6 |
Targeted will-change | Specific properties about to animate — never global | see performance.md |
Decision rules baked into the techniques:
- Exits should always be subtler than enters — smaller movement, same blur.
bounce: 0is the production default; bounce above zero reads as playful.- Borders are fine in dark mode or when you want intentional hard edges.
---
Common Mistakes (Jakub's Perspective)
- Making enter and exit animations equally prominent — Exits should be subtler
- Using solid borders when shadows would adapt better — Especially on varied backgrounds
- Forgetting optical alignment — Buttons with icons, play buttons, asymmetric shapes
- Over-animating — If users notice the animation itself, it's too much
- Using the same animation everywhere — Context should drive timing and easing choices
- Ignoring hover state transitions — Even small transitions (150-200ms) feel more polished than instant changes
---
Jakub vs. Emil vs. Jhey
| Aspect | Jakub | Emil | Jhey |
|---|---|---|---|
| Focus | Subtle polish | Restraint & speed | Playful experimentation |
| Key question | "Is this subtle enough?" | "Should this animate?" | "What could this become?" |
| Signature technique | Blur + opacity + translateY | Frequency-based decisions | CSS custom properties |
| Ideal context | Production polish | High-frequency tools | Learning & exploration |
When to use Jakub: You've decided something should animate (passed Emil's gate) and need to make it production-ready and polished.
Jhey Tompkins' Animation Principles
Jhey Tompkins (@jh3yy) is a design engineer known for pushing the boundaries of CSS and creative coding. His approach emphasizes playful experimentation — learning through building whimsical projects where the joy of creation drives skill development.
This file is Jhey's philosophy and decision frameworks — the judgment for creative expression and easing personality. Implementation code lives in motion-cookbook.md (cross-referenced below).
---
Core Philosophy: Learn Through Play
"I went from 'I want to learn X, so how do I fit it into Y' to 'I want to make Y, can I learn X to do it?'"
His key question for any interaction: "What could this become?"
The motivation should be making something cool — learning is a happy side effect.
Core Beliefs
- No idea is a bad idea — Document every spark, however weird
- Don't ask "Why?" or "Is this practical?" — Make what brings you joy first
- "Useless" demos teach real skills — CSS art teaches clip-path mastery, border-radius tricks, stacking contexts
- Lateral learning — Building diverse demos trains you to switch contexts and rise to challenges
- You'll never have time to make everything — And that's okay. The act of documenting ideas matters.
Keep notebooks everywhere — including by your bed. Creative sparks happen at random times.
---
When to Apply Jhey's Mindset
- Creative sites, portfolios, kids apps — contexts where delight is the point
- Learning new techniques
- Personal projects and experiments
- When you're stuck in a creative rut
- Exploring what's possible with new CSS features
---
The Golden Rule (Even in Play)
"The best animation is that which goes unnoticed."
Even in playful contexts, effective motion enhances the experience without demanding attention, feels natural and expected, serves a functional purpose, and doesn't fatigue users on repeated interactions.
---
Easing Has Personality (Decision Framework)
"Duration is all about timing, and timing has a big impact on the movement's naturalness."
Each easing curve communicates something. Context matters more than rules.
"You wouldn't use 'Elastic' for a bank's website, but it might work perfectly for an energetic site for children."
Brand personality should drive easing choices — a playful brand can use bouncy/elastic easing, a professional brand should use subtle springs or ease-out.
When NOT to use bouncy/elastic easing:
- Professional/enterprise applications
- Frequently repeated interactions (gets tiresome)
- Error states or serious UI
- When users need to complete tasks quickly
(Easing-feel reference table and the linear() recipe for pure-CSS bounce/elastic/spring → cookbook §2.)
---
Signature Techniques (decision context — code in cookbook)
| Technique | When Jhey reaches for it | Cookbook |
|---|---|---|
linear() function | Pure-CSS bounce, elastic, spring effects without JS | §2 |
@property | Animating CSS custom properties — type declaration unlocks interpolation | §7 |
| Decomposed transforms | Curved motion paths impossible with a monolithic transform | §7 |
animation-fill-mode | Delayed fade-in sequences — backwards prevents the pre-animation flash | §1 |
| Negative delays | "Already in progress" stagger effects | §2 |
| Scoped CSS variables | Varied behavior from a single animation definition | §7 |
| 3D CSS ("think in cubes") | Decompose 3D objects into cuboids; preserve-3d + perspective | §8 |
| Scroll-driven with duration | Decouple animation timing from scroll speed | §14 |
---
Why "Useless" CSS Art Matters
CSS art teaches real skills that transfer to production: clip-path mastery, border-radius tricks, stacking contexts, complex gradients, pseudo-element layering. For complex illustrations — break into simple shapes, use pseudo-elements liberally, layer with z-index carefully, use CSS variables for repeated values, don't fear many elements.
---
When to Experiment vs. Ship
| Situation | Approach |
|---|---|
| Learning a new CSS feature | Build something weird and fun |
| Portfolio piece | Push boundaries, show creativity |
| Personal project | Follow your joy |
| Client work | Apply Jakub's production polish instead |
| High-frequency tool | Apply Emil's restraint instead |
The playful approach is for learning and exploration. For production, switch to Jakub or Emil's mindset.
---
Common Mistakes (Jhey's Perspective)
- Filtering ideas based on "usefulness" too early — Make first, judge later
- Not documenting random creative sparks — Keep notebooks everywhere
- Thinking CSS art is useless — It teaches real skills
- Focusing on "How do I learn X?" instead of "How do I make Y?" — Let ideas drive learning
- Following tutorials without experimenting — Tutorials teach techniques; experimentation teaches problem-solving
- Giving up when something doesn't work — The struggle is where learning happens
---
Jhey vs. Emil vs. Jakub
| Aspect | Jhey | Emil | Jakub |
|---|---|---|---|
| Focus | Playful experimentation | Restraint & speed | Subtle polish |
| Key question | "What could this become?" | "Should this animate?" | "Is this subtle enough?" |
| Signature technique | CSS custom properties | Frequency-based decisions | Blur + opacity + translateY |
| Ideal context | Learning & exploration | High-frequency tools | Production polish |
When to use Jhey: You're building something where delight is the goal, exploring what's possible, or learning a new technique. The skills transfer to production work later.
Motion Cookbook
The single source of truth for motion recipes — implementation patterns and code. In Create mode this is your primary reference; in Audit mode load it when making implementation recommendations. Designer philosophy and decision frameworks live in the per-designer reference files; the code lives here.
---
1. Enter & Exit Animations
Enter Animation Recipe (Jakub)
A standard enter animation combines three properties:
- Opacity: 0 → 1
- TranslateY: ~8px → 0 (or calc(-100% - 4px) for full container slides)
- Blur: 4px → 0px
initial={{ opacity: 0, translateY: "calc(-100% - 4px)", filter: "blur(4px)" }}
animate={{ opacity: 1, translateY: 0, filter: "blur(0px)" }}
transition={{ type: "spring", duration: 0.45, bounce: 0 }}Why blur? It creates a "materializing" effect that feels more physical than opacity alone. The element appears to come into focus, not just fade in.
Exit Animation Subtlety (Jakub)
Key Insight: Exit animations should be subtler than enter animations.
When a component exits, it doesn't need the same amount of movement or attention as when entering. The user's focus is moving to what comes next, not what's leaving.
// Instead of full exit movement:
exit={{ translateY: "calc(-100% - 4px)" }}
// Use a subtle fixed value:
exit={{ translateY: "-12px", opacity: 0, filter: "blur(4px)" }}Why this works: Exits become softer, less jarring, and don't compete for attention with whatever is entering or remaining.
When NOT to use subtle exits:
- When the exit itself is meaningful (user-initiated dismissal)
- When you need to emphasize something leaving (error clearing, item deletion)
- Full-page transitions where directional continuity matters
Fill Mode for Persistence (Jhey)
Use animation-fill-mode to prevent jarring visual resets:
forwards: Element retains animation styling after completionbackwards: Element retains style from first keyframe before animation startsboth: Retains styling in both directions
Critical for: Fade-in sequences with delays. Without backwards, elements flash at full opacity before their delayed animation starts, then pop to invisible, then fade in.
---
2. Easing & Timing
Duration Impacts Naturalness
"Duration is all about timing, and timing has a big impact on the movement's naturalness." — Jhey Tompkins
Custom Easing is Essential (Emil)
"Easing is the most important part of any animation. It can make a bad animation feel great."
Built-in CSS easing (ease, ease-in-out) lacks strength. Always use custom Bézier curves for professional results. Resources: easing.dev, easings.co
Easing Selection Guidelines (Jhey)
Each easing curve communicates something to the viewer. Context matters more than rules.
| Easing | Feel | Good For |
|---|---|---|
ease-out | Fast start, gentle stop | Elements entering view (arriving) |
ease-in | Gentle start, fast exit | Elements leaving view (departing) |
ease-in-out | Gentle both ends | Elements changing state while visible |
linear | Constant speed | Continuous loops, progress indicators |
spring | Natural deceleration | Interactive elements, professional UI |
The Context Rule:
"You wouldn't use 'Elastic' for a bank's website, but it might work perfectly for an energetic site for children."
Brand personality should drive easing choices. A playful brand can use bouncy, elastic easing. A professional brand should use subtle springs or ease-out.
When NOT to use bouncy/elastic easing:
- Professional/enterprise applications
- Frequently repeated interactions (gets tiresome)
- Error states or serious UI
- When users need to complete tasks quickly
Spring Animations (Jakub)
Prefer spring animations over linear/ease for more natural-feeling motion:
transition={{ type: "spring", duration: 0.45, bounce: 0 }}
transition={{ type: "spring", duration: 0.55, bounce: 0.1 }}Why `bounce: 0`? It gives smooth deceleration without overshoot—professional and refined. Reserve bounce > 0 for playful contexts.
The linear() Function (Jhey)
CSS linear() enables bounce, elastic, and spring effects in pure CSS:
:root {
--bounce-easing: linear(
0, 0.004, 0.016, 0.035, 0.063, 0.098, 0.141 13.6%, 0.25, 0.391, 0.563, 0.765,
1, 0.891 40.9%, 0.848, 0.813, 0.785, 0.766, 0.754, 0.75, 0.754, 0.766, 0.785,
0.813, 0.848, 0.891 68.2%, 1 72.7%, 0.973, 0.953, 0.941, 0.938, 0.941, 0.953,
0.973, 1, 0.988, 0.984, 0.988, 1
);
}Use Jake Archibald's linear() generator for custom curves: https://linear-easing-generator.netlify.app/
Stagger Techniques (Jhey)
animation-delay only applies once (not per iteration). Approaches:
1. Different delays with finite iterations — Works for one-time sequences 2. Pad keyframes to create stagger within the animation:
@keyframes spin {
0%, 50% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}3. Negative delays for "already in progress" effects:
.element { animation-delay: calc(var(--index) * -0.2s); }This makes animations appear mid-flight from the start—useful for staggered continuous animations.
---
3. Visual Effects
Shadows Instead of Borders (Jakub)
In light mode, prefer subtle multi-layer box-shadows over solid borders:
.card {
box-shadow:
0px 0px 0px 1px rgba(0, 0, 0, 0.06),
0px 1px 2px -1px rgba(0, 0, 0, 0.06),
0px 2px 4px 0px rgba(0, 0, 0, 0.04);
}
/* Slightly darker on hover */
.card:hover {
box-shadow:
0px 0px 0px 1px rgba(0, 0, 0, 0.08),
0px 1px 2px -1px rgba(0, 0, 0, 0.08),
0px 2px 4px 0px rgba(0, 0, 0, 0.06);
}Why shadows over borders?
- Shadows adapt to any background (images, gradients, varied colors) because they use transparency
- Borders are solid colors that may clash with dynamic backgrounds
- Multi-layer shadows create depth; single borders feel flat
- Shadows can be transitioned smoothly with
transition: box-shadow
When borders are fine:
- Dark mode (shadows less visible anyway)
- When you need hard edges intentionally
- Simple interfaces where depth isn't needed
Gradients & Color Spaces (Jakub)
- Use
oklchfor gradients to avoid muddy midpoints:
element { background: linear-gradient(in oklch, blue, red); }- Color hints control where the blend midpoint appears (different from color stops)
- Layer gradients with
background-blend-modefor unique effects
Why oklch? It interpolates through perceptually uniform color space, avoiding the gray/muddy zone that sRGB hits when blending complementary colors.
Blur as a Signal (Jakub)
Blur (via filter: blur()) combined with opacity and translate creates a "materializing" effect. Use blur to signal:
- Entering focus: blur → sharp
- Losing relevance: sharp → blur
- State transitions: blur during, sharp after
---
4. Optical Alignment
Geometric vs. Optical (Jakub)
"Sometimes it's necessary to break out of geometric alignment to make things feel visually balanced."
Buttons with icons: Reduce padding on the icon side so content appears centered:
[ Icon Text ] ← Geometric (mathematically centered, feels off)
[ Icon Text ] ← Optical (visually centered, feels right)Play button icons: The triangle points right, creating visual weight on the left. Shift it slightly right to appear centered.
Icons in general: Many icon packs account for optical balance, but asymmetric shapes (arrows, play, chevrons) may need manual margin/padding adjustment.
The rule: If it looks wrong despite being mathematically correct, trust your eyes and adjust.
---
5. Icon & State Animations (Jakub)
Contextual Icon Transitions
When icons change contextually (copy → check, loading → done), animate:
- Opacity
- Scale
- Blur
<AnimatePresence mode="wait">
{isCopied ? (
<motion.div
initial={{ opacity: 0, scale: 0.8, filter: "blur(4px)" }}
animate={{ opacity: 1, scale: 1, filter: "blur(0px)" }}
exit={{ opacity: 0, scale: 0.8, filter: "blur(4px)" }}
>
<CheckIcon />
</motion.div>
) : (
<motion.div ...>
<CopyIcon />
</motion.div>
)}
</AnimatePresence>Why animate icon swaps? Instant swaps feel jarring and can be missed. Animated transitions:
- Draw attention to the state change
- Feel responsive and polished
- Give the user confidence their action registered
---
6. Shared Layout Animations (Jakub)
FLIP Technique via layoutId
Motion's layoutId prop enables smooth transitions between completely different components:
// In one location:
<motion.div layoutId="card" className="small-card" />
// In another location:
<motion.div layoutId="card" className="large-card" />Motion automatically animates between them using the FLIP technique (First, Last, Inverse, Play).
Best Practices
- Keep elements with
layoutIdoutside ofAnimatePresenceto avoid conflicts - If inside
AnimatePresence, the initial/exit animations will trigger during layout animation (looks bad with opacity) - Multiple elements can animate if each has a unique
layoutId - Works for different heights, widths, positions, and even component types (card → modal)
---
7. CSS Custom Properties & @property (Jhey)
Type Specification Unlocks Animation
The @property rule lets you declare types for CSS variables, enabling smooth interpolation:
@property --hue {
initial-value: 0;
inherits: false;
syntax: '<number>';
}
@keyframes rainbow {
to { --hue: 360; }
}Available types: length, number, percentage, color, angle, time, integer, transform-list
Why this matters: Without @property, CSS sees custom properties as strings. Strings can't interpolate—they just swap. With a declared type, the browser knows how to smoothly transition between values.
Decompose Complex Transforms
Instead of animating a monolithic transform (which can't interpolate curved paths), split into typed properties:
@property --x { syntax: '<percentage>'; initial-value: 0%; inherits: false; }
@property --y { syntax: '<percentage>'; initial-value: 0%; inherits: false; }
.ball {
transform: translateX(var(--x)) translateY(var(--y));
animation: throw 1s;
}
@keyframes throw {
0% { --x: -500%; }
50% { --y: -250%; }
100% { --x: 500%; }
}This creates curved motion paths that would be impossible with standard transform animation—the ball arcs through space rather than moving in straight lines.
Scoped Variables for Dynamic Behavior (Jhey)
CSS custom properties respect scope, enabling powerful patterns:
.item { --delay: 0; animation-delay: calc(var(--delay) * 100ms); }
.item:nth-child(1) { --delay: 0; }
.item:nth-child(2) { --delay: 1; }
.item:nth-child(3) { --delay: 2; }Use scoped variables to create varied behavior from a single animation definition.
---
8. 3D CSS (Jhey)
Think in Cuboids
"Think in cubes instead of boxes" — Jhey Tompkins
Complex 3D scenes are assemblies of cube-shaped elements (like LEGO). Decompose any 3D object into cuboids.
Essential Setup
.scene {
transform-style: preserve-3d;
perspective: 1000px;
}Responsive 3D
Use CSS variables for dimensions and vmin units:
.cube {
--size: 10vmin;
width: var(--size);
height: var(--size);
}---
9. Clip-Path Animations (Emil)
Why clip-path?
- Hardware-accelerated rendering
- No layout shifts
- No additional DOM elements needed
- Smoother than width/height animations
Basic Syntax
clip-path: inset(top right bottom left);
clip-path: circle(radius at x y);
clip-path: polygon(coordinates);Image Reveal Effect
.reveal {
clip-path: inset(0 0 100% 0); /* Hidden */
animation: reveal 1s forwards cubic-bezier(0.77, 0, 0.175, 1);
}
@keyframes reveal {
to { clip-path: inset(0 0 0 0); } /* Fully visible */
}Tab Transitions
Duplicate tab lists with different styling. Animate the overlay's clip-path to reveal only the active tab—creates smooth color transitions without timing issues.
Scroll-Driven with clip-path
const clipPathY = useTransform(scrollYProgress, [0, 1], ["100%", "0%"]);
const motionClipPath = useMotionTemplate`inset(0 0 ${clipPathY} 0)`;Text Mask Effect
Stack elements with complementary clip-paths:
.top { clip-path: inset(0 0 50% 0); } /* Shows top half */
.bottom { clip-path: inset(50% 0 0 0); } /* Shows bottom half */Adjust values on mouse interaction for seamless transitions.
---
10. Button & Interactive Feedback (Emil)
Scale on Press
Add immediate tactile feedback:
button:active {
transform: scale(0.97);
}Don't Animate from scale(0)
// BAD: Unnatural motion
initial={{ scale: 0 }}
// GOOD: Natural, gentle motion
initial={{ scale: 0.9, opacity: 0 }}
animate={{ scale: 1, opacity: 1 }}Tooltip Delay Pattern
First tooltip in a group: delay + animation. Subsequent tooltips: instant.
[data-instant] {
transition-duration: 0ms;
}Blur as a Bridge
When state transitions aren't smooth enough, add blur to mask imperfections:
.transitioning {
filter: blur(2px);
}---
11. CSS Transitions vs Keyframes (Emil)
Interruptibility Problem
CSS keyframes can't be interrupted mid-animation. When users rapidly trigger actions, elements "jump" to new positions rather than smoothly retargeting.
Solution: Use CSS transitions with state-driven classes:
useEffect(() => {
setMounted(true);
}, []);.element {
transform: translateY(100%);
transition: transform 400ms ease;
}
.element.mounted {
transform: translateY(0);
}Direct Style Updates for Performance
CSS variables cause style recalculation across all children. For frequent updates (drag operations), update styles directly:
// BAD: CSS variable (expensive cascade)
element.style.setProperty('--drag-y', `${y}px`);
// GOOD: Direct style (no cascade)
element.style.transform = `translateY(${y}px)`;Momentum-Based Dismissal
Use velocity (distance / time) instead of distance thresholds:
const velocity = dragDistance / elapsedTime;
if (velocity > 0.11) dismiss();Fast, short gestures should work—users shouldn't need to drag far.
Damping for Natural Boundaries
When dragging past boundaries, reduce movement progressively. Things in real life slow down before stopping.
---
12. Spring Physics (Emil)
Key Parameters
| Parameter | Effect |
|---|---|
| Stiffness | How quickly spring reaches target (higher = faster) |
| Damping | How quickly oscillations settle (higher = less bounce) |
| Mass | Weight of object (higher = more momentum) |
Spring for Mouse Position
const springConfig = { stiffness: 300, damping: 30 };
const x = useSpring(mouseX, springConfig);
const y = useSpring(mouseY, springConfig);Use useSpring for any value that should interpolate smoothly rather than snap—nothing in the real world changes instantly.
Interruptibility
Great animations can be interrupted mid-play:
- Framer Motion supports interruption natively
- CSS transitions allow smooth interruption before completion
- Test by clicking rapidly—animations should blend, not queue
---
13. Origin-Aware Animations (Emil)
Animations should originate from their logical source:
/* Dropdown from button should expand from button, not center */
.dropdown {
transform-origin: top center;
}Component library support:
- Base UI:
--transform-originCSS variable - Radix UI:
--radix-dropdown-menu-content-transform-origin
---
14. Scroll-Driven Animations (Jhey)
The Core Problem
Scroll-driven animations are tied to scroll speed. If users scroll slowly, animations play slowly. This feels wrong for most UI—you want animations to trigger at a scroll position, not be controlled by scroll speed.
Duration Control Pattern
Use two coordinated animations: 1. Trigger animation: Scroll-driven, toggles a custom property when element enters view 2. Main animation: Traditional duration-based, activated via Style Query
This severs the connection between scroll speed and animation timing—the animation runs over a fixed duration once triggered, regardless of how fast the user scrolled.
Progressive Enhancement
Always provide fallbacks:
// IntersectionObserver fallback for browsers without scroll-driven animation support
if (!CSS.supports('animation-timeline', 'scroll()')) {
// Use IntersectionObserver instead
}Output Format
The audit produces one of two outputs:
- HTML mode (default) — a self-contained
.htmlfile written to the audited project'smotion-audits/directory and opened in the user's default browser. Each Critical or Important finding gets a live, looping CSS demo card beside it. - Terminal mode (flag-triggered) — a decorated-markdown report rendered inline in the conversation. Use when the user passes
--terminal,--inline,--no-html, "show the full report inline," or any natural-language equivalent. No HTML file is written.
Both modes carry the same audit content; only the rendering differs. Do not summarize — users want full per-lens perspectives.
---
HTML mode
Canonical references
| File | Role |
|---|---|
references/report-template.html | Source of truth. Full worked example (fictional "Tally" habit tracker, React + Framer Motion). Every section, every token, every pattern. When in doubt about layout, structure, or styling, READ this file. |
references/demo-shell.html | Minimal isolated example of a single demo card with the per-finding slot pattern. Used as a per-finding template snippet. |
The agent builds the report by reading these two files and adapting them to the audited project — same architecture, audit-specific content.
File structure
Single self-contained .html. All CSS inlined. No external JS. Fonts loaded via Google Fonts CDN (Familjen Grotesk / Public Sans / Geist Mono) with full system-stack fallbacks so the file degrades gracefully offline.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>{project-name} motion audit — {ISO date}</title>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Familjen+Grotesk:wght@400;500;600;700&family=Public+Sans:wght@400;500;600;700&family=Geist+Mono:wght@400;500;600&display=swap" rel="stylesheet">
<style>
/* 1. :root token block (neutrals, accent aliases, severity, timing ramp, spacing, fonts)
2. :root:has(#theme-light:checked) light-mode token override
3. Layout + component CSS (header, lens-table, timing-figure, lens-sec, finding-row, demo, rec, ref-summary)
4. Per-finding @keyframes m{n} + .demo-{n}__mt rules, one block per Critical or Important finding,
{n} = 1-indexed across the whole report (collision-free) */
</style>
</head>
<body>
<!-- Global theme switch (Dark/Light radios) -->
<!-- Header (eyebrow, title, lede, meta, stats) -->
<!-- Overall Assessment -->
<!-- 01 · Lens summary table -->
<!-- 02 · Where the timings land (duration-budget diagram) -->
<!-- 03–05 · Per-lens sections (Jakub, Emil, Jhey — ordered by weighting for the audited context) -->
<!-- 06 · Combined recommendations tables -->
<!-- 07 · Lens reference summary -->
<!-- footer -->
</body>
</html>Design system
Neutral-default, dual-mode, severity-driven.
- Neutrals. Cool slate-graphite at hue 255, very low chroma (0.003–0.010).
--inkis the page background;--paperis the foreground text. In light mode the two swap values via the:root:has(#theme-light:checked)override — every other token derives from these two and flips automatically. - Severity (FIXED, never adaptive). Red
oklch(0.655 0.185 25)(critical) · Amberoklch(0.805 0.125 78)(important) · Greenoklch(0.745 0.135 152)(opportunity). Light-mode counterparts deepen L for contrast on white; hues stay constant. - Timing-budget ramp (FIXED). Same hues as severity; used in section 02 only. Instant + responsive = green, deliberate = amber, sluggish = red.
- Accent (NEUTRAL by default).
--accent,--accent-soft,--accent-tintalias to--paper,--paper-dim, and a low-alpha paper tint. The report has no chromatic primary color — severity is the only color in the document. An individual audit MAY repoint these three to a sampled brand color, but ONLY if the brand has at least ~40° hue clearance from each of the severity hues and is verified not to fall in the AI-cliché zone (neon cyan, purple-to-blue gradients). - Fonts. Display = Familjen Grotesk, body = Public Sans, mono = Geist Mono. The mono carries timing values (
240ms · ease-out) and all small labels — never substitute a more generic mono for the timing values.
Dual theme
Pure-CSS toggle. Two radios (#theme-dark default-checked, #theme-light) live inside .theme-switch at the top of .wrap. :root:has(#theme-light:checked) overrides every theme-dependent token. No JS. Selector compatibility: :has() is Baseline 2023, supported by all modern browsers.
The global toggle's visual control is a segmented Dark / Light pill, top-right of the page, styled to match the per-demo stage segmented control.
The report's motion posture
The report itself has no entrance, scroll, or mount animation. No staggered reveals. No fade-in-on-scroll. No motion on mount outside the demo cards. The demo cards are the only animated elements in the document — anything else would reproduce the AI-slop patterns this skill audits against.
The one allowed transition: border-color 0.2s ease on lens-table rows and finding-rows for hover feedback. That's it.
Sections (in render order)
Global theme switch
First element inside .wrap, right-aligned segmented Dark / Light pill.
Header
.eyebrow ("MOTION AUDIT · DESIGN-MOTION-PRINCIPLES")
h1.title ({project name} — {one-line audit framing})
p.lede ({1–2 sentence project description})
.meta-row (what it is · stack)
.stats (Findings · Critical · Important · Opportunities — each is an anchor link to its rec table)Each severity count pairs the number with a text label so the signal is readable under red-green color vision deficiency. Each count is an anchor link (#rec-crit, #rec-imp, #rec-opp) to the corresponding recommendation table.
Overall Assessment
One short paragraph in larger display type. Does this feel polished? Too much? Too little? What's working, what's not? Wraps in <section class="assessment"> with a mono-label "OVERALL" eyebrow.
01 · Lens summary
3-row table, one row per practitioner. Columns: Lens (with name and weight chip) · Verdict (Strong / Concern / Problem / Mixed with a colored dot) · One-line read. Weight chips indicate Primary / Secondary / Selective per audit context.
02 · Where the timings land — duration-budget diagram
Motion-native analog of thumb-first's thumb-zone diagram. A horizontal SVG (viewBox="0 0 660 300") plots Tally's animations as numbered dots on a 0–600ms scale with four zone bands:
| Zone | Range | Color |
|---|---|---|
| Instant | 0–100ms | green (--t-good) |
| Responsive | 100–300ms | green (--t-good) |
| Deliberate | 300–500ms | amber (--t-mid) |
| Sluggish | 500ms+ | red (--t-slow) |
Animations with NO transition are plotted as hollow dashed circles at x=40 (= 0ms). The paired key list to the right carries the action names and durations. A "What's off" block below explains the misalignments.
The SVG uses CSS-class-driven fills (via an inline <style> block) so the diagram re-tones with the global theme. Dot label color flips per theme (dark text on lighter dots in dark mode, light text on deeper dots in light mode).
03–05 · Per-lens sections
Three sections, ordered by weighting (primary first). Each section:
.lens-sec__head (h3 "Designer — Perspective" + .lens-sec__weight chip)
p.lens-sec__verdict (verdict dot)
.lens-block "What's working well" (ul.lens-list.good with ✓ markers + file refs)
.lens-block "Issues to address" (one .finding-row per Critical/Important finding)
.lens-block "Opportunities" (ul.lens-list.opp with 💡 markers + file refs)
.lens-take ("Through {Designer}'s lens: {1–2 sentence summary}")Section heading: Designer Name — Perspective Handle (em-dash). Lens take is the documented lens summary, NOT a quote from the person — render as Through {Designer}'s lens (apostrophe-s).
Three perspective handles:
| Designer | Handle |
|---|---|
| Emil Kowalski | Restraint & Speed |
| Jakub Krehel | Production Polish |
| Jhey Tompkins | Experimentation & Delight |
Finding rows (Critical + Important only)
Each Critical or Important finding renders as a .finding-row inside its lens's "Issues to address" block:
.finding-row[data-sev="crit|imp"]
.finding-row__prose
.find-tags (severity chip + 1–2 lens chips)
h4.find-title
.find-body
<p><span class="label">What</span>{prose}</p>
<p><span class="label">Why it matters</span>{prose}</p>
<div class="fix"><p><span class="label">Recommended motion</span>{prose}</p></div>
<p class="find-loc"><code>{file:line}</code></p>
.demo
{radios + bar + stage with motion-target}Two-column at desktop (1fr 380px), stacks at narrow widths (≤860px).
Opportunities never render a .finding-row and never get a demo card. They appear in the per-lens .lens-block "Opportunities" as a .lens-list.opp bulleted list.
06 · Combined recommendations
Three severity-grouped tables, in order: Critical · must fix (#rec-crit) → Important · should fix (#rec-imp) → Opportunities · could enhance (#rec-opp). Each has a .tier-label with severity-colored mono label, a horizontal rule, and a count. Columns: Issue · File · Fix (or Enhancement · Where · Impact for opportunities).
07 · Lens Reference Summary
Closing .ref-summary block. Which lens was referenced most + why + how to lean differently (one line per lens). No new findings here.
Footer
Mono micro-row: project name + finding counts.
Demo cards (the centerpiece)
Each Critical or Important finding gets one demo card. The card is the ONLY animated element in the report.
Markup pattern
<div class="demo">
<input class="vh" type="radio" name="st{n}" id="st{n}-a" checked>
<input class="vh" type="radio" name="st{n}" id="st{n}-l">
<input class="vh" type="radio" name="st{n}" id="st{n}-d">
<div class="demo__bar">
<div class="demo__meta">
<span class="demo__title">{recommended motion title}</span>
<span class="demo__timing">{duration} · {easing}</span>
</div>
<div class="demo__controls">
<div class="seg">
<label for="st{n}-a">Auto</label>
<label for="st{n}-l">Light</label>
<label for="st{n}-d">Dark</label>
</div>
<span class="demo__loop">↻</span>
</div>
</div>
<div class="demo__stage">
<div class="demo-{n}__mt">{motion target markup}</div>
</div>
</div>{n} is the finding's 1-indexed position across the whole report (not per-section). This guarantees @keyframes m{n} and .demo-{n}__mt selectors are unique across the concatenated <style> block.
Stage 3-state toggle
| State | Behavior |
|---|---|
| Auto (default) | Stage colors follow the global theme via --surface-2 + --paper tokens. Matches the rest of the report. |
| Light | Hardcoded light stage (--st-bg: oklch(0.985 0.003 255), --st-fg: oklch(0.180 0.006 255)). Overrides global. |
| Dark | Hardcoded dark stage (inverted). Overrides global. |
Pure CSS. Radio inputs precede .demo__bar and .demo__stage so sibling-combinator selectors (#stN-l:checked ~ .demo__stage) work.
Stage tokens (used by motion targets)
| Token | Role |
|---|---|
--st-bg | Stage background color |
--st-fg | Foreground / text / "ink" color on the stage |
--st-line | Border / divider color on the stage |
--st-dim | Dimmed text color on the stage |
Motion-target elements (.ui-btn, .ui-card, .ui-row, .ui-check, .ui-num, .ui-label, milestone badge, etc.) use --st-fg / --st-bg instead of --accent / page colors. This guarantees correct contrast even when a stage is locked to a different theme than the page.
Per-finding motion code
For each Critical or Important finding {n}:
1. Generate motion code. Read the audited code, the relevant lens reference (emil-kowalski.md / jakub-krehel.md / jhey-tompkins.md), and references/motion-cookbook.md for the concrete recipe. Author a @keyframes m{n} block and a .demo-{n}__mt { animation: m{n} 3s {easing} infinite; } rule. 2. Loop pacing. animation-duration: 3s. Keyframes at 0% / ~60% / 100%. Motion completes by ~60% (~1.8s), then holds until 100% (~1.2s) before looping. The 100% state MUST match the motion-target's default (no-animation) static rendering — this is the prefers-reduced-motion fallback contract. 3. Inject into `<style>`. Append the @keyframes m{n} + .demo-{n}__mt block to the report's <style>, after the layout CSS, inside a @media (prefers-reduced-motion: no-preference) { ... } guard. 4. Inject demo-card markup. Append the .demo block to the finding's .finding-row. Set .demo__title to a short motion title (e.g., "Quick tab crossfade"). Set .demo__timing to duration + easing (e.g., "180ms · ease-out"). 5. Honor reduced-motion. The shell's @media (prefers-reduced-motion: reduce) block disables all [class*="__mt"] animations and hides the ↻ loop indicator. The per-finding 100% keyframe state must match the motion-target's default static rendering. Do NOT write per-finding overrides inside the reduce-motion block.
Empty-state behavior
When the audit produces zero Critical + zero Important findings:
- Header still renders with the severity counts (showing
Critical: 0 · Important: 0 · Opportunities: N). - Each per-lens "Issues to address"
.lens-blockstill renders its.mono-label, but the body shows a dimmed-italic line:
<p class="lens-empty">No issues found at this severity level.</p>- No
.finding-rowmarkup, no demo cards. - Opportunities still render as
.lens-list.opplists. - Combined recommendations tables render with empty
<tbody>containing a single dimmed-italic row, OR are omitted entirely if their tier has zero findings.
Responsive behavior
.finding-row2-col → 1-col at ≤860px (demo stacks below prose)..timing-grid2-col → 1-col at ≤860px (key list stacks below SVG)..lens-table→ stacked blocks at ≤600px (each row becomes a block, headers hidden)..ref-lean2-col → 1-col at ≤600px.
Absolute bans
- NO `border-left` or `border-right` >1px as a colored accent stripe on cards, list items, callouts, or alerts. Use full borders, leading numbers, tinted backgrounds, or no visual indicator instead. (The previous version of this spec had
border-left: 3px solid var(--accent)on the lens-take block — removed.) - NO gradient text (
background-clip: text+ gradient). - NO pulsing UI in any demo (looping scale/opacity on status indicators, "live" pulse rings, breathing CTAs). Demo motion is structured one-shot enters that loop, not attention-getting pulses.
- NO chromatic accent in the default system. The neutral-default is the supported configuration. Repointing
--accentto a sampled brand color is permitted only when severity-hue clearance is verified.
---
Terminal mode (flag-triggered fallback)
When the user passes --terminal / --inline / a natural-language equivalent, do not write an HTML file. Render the decorated-markdown report inline in the conversation.
Quick Summary (show first)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📊 AUDIT SUMMARY
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔴 [X] Critical | 🟡 [X] Important | 🟢 [X] Opportunities
Primary lens: [Designer] ([context reason])
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━Overall Assessment
One paragraph: Does this feel polished? Too much? Too little? What's working, what's not?
Per-Designer Sections
For each designer (Emil, Jakub, Jhey — ordered by weighting), use a horizontal-rule header and the body format:
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚡ EMIL KOWALSKI — Restraint & Speed (Secondary)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
What's Working Well
- ✓ [Observation] — `file.tsx:line`
Issues to Address
- ✗ [Issue] — `file.tsx:line`
[Brief explanation]
Recommended: [Brief recommendation]
Through Emil's lens: [1–2 sentence summary]Combined Recommendations
Three severity tables:
Critical · Must Fix
| | Issue | File | Fix |
|-|-------|------|-----|
| 🔴 | [Issue] | `file:line` | [Fix] |
Important · Should Fix
| | Issue | File | Fix |
|-|-------|------|-----|
| 🟡 | [Issue] | `file:line` | [Fix] |
Opportunities · Could Enhance
| | Enhancement | Where | Impact |
|-|-------------|-------|--------|
| 🟢 | [Enhancement] | `file:line` | [Impact] |Lens Reference Summary
> Lens referenced most: [Designer Name] — [Perspective]
>
> Why: [Explanation based on the project context]
>
> If you want to lean differently:
> - To follow Emil more strictly: [specific actions]
> - To follow Jakub more strictly: [specific actions]
> - To follow Jhey more strictly: [specific actions]---
Mode selection
Default to HTML mode. Trigger terminal mode only when the user explicitly signals it via:
--terminal/--inline/--no-htmlflag- Natural-language equivalent: "show the full report inline," "skip the HTML," "no HTML," "terminal only"
- Any headless or CI environment where opening a browser doesn't apply
When defaulting to HTML, mention in the 3-line confirmation summary (see workflows/audit.md) that --terminal is the alternative — so the user knows it exists.
Performance
---
will-change Explained (Jakub)
A hint to the browser: "I'm about to animate these properties, please prepare."
/* Good - specific properties that will animate */
.animated-button {
will-change: transform, opacity;
}
/* Bad - too broad, wastes resources */
* { will-change: auto; }
.element { will-change: all; }Properties that benefit from will-change:
- transform
- opacity
- filter (blur, brightness)
- clip-path
- mask
Why it matters: Without the hint, the browser promotes elements to GPU layers only when animation starts, causing first-frame stutter. With will-change, it pre-promotes during idle time.
When NOT to use:
- On elements that won't animate
- On too many elements (each GPU layer uses memory)
- As a "fix" for janky animations (find the real cause)
---
Gradient Animation Performance (Jakub)
Cheap to animate (GPU-accelerated):
- background-position
- background-size
- opacity
Expensive to animate:
- Color stops
- Adding/removing gradient layers
- Switching gradient types
Tip: Animate a pseudo-element overlay or use CSS variables that transition indirectly.
---
Animation Performance Budget
As a rough guide:
- 0-3 elements with
will-change: Fine - 4-10 elements: Careful, test on low-end devices
- 10+ elements: Reconsider approach, use virtualization or stagger
---
Properties to Avoid Animating
These trigger layout recalculation (expensive):
width,heighttop,left,right,bottommargin,paddingfont-size
Always prefer:
transform: translate()instead oftop/lefttransform: scale()instead ofwidth/heightopacityfor visibility changes
---
Performance Checklist
- [ ]
will-changeused sparingly and specifically - [ ] Animations use transform/opacity (not layout properties)
- [ ] Tested on low-end devices
- [ ] No continuous animations without purpose
- [ ] GPU layer count is reasonable (< 10 animated elements)
Workflow: Audit Mode
Review existing motion design and produce a per-designer report. Reconnaissance first, then a full audit, then a structured report. Never apply rules blindly.
Required Reading
Read as you reach each step (not all upfront): 1. references/audit-checklist.md — your systematic guide (STEP 2) 2. The weighted designer file(s) — emil-kowalski.md, jakub-krehel.md, jhey-tompkins.md (STEP 2) 3. references/accessibility.md — mandatory every audit (STEP 2) 4. references/anti-checklist.md — the quality gate: AI-slop motion categories + anti-patterns to flag (STEP 2) 5. references/output-format.md — the report template, HTML mode + terminal mode (STEP 3) 6. references/demo-shell.html — the demo-card template for HTML-mode per-finding demos (STEP 3)
---
STEP 1: Context Reconnaissance (DO THIS FIRST)
Before auditing any code, understand the project context.
Gather Context
Check these sources: 1. CLAUDE.md — Any explicit context about the project's purpose or design intent 2. package.json — What type of app? (Next.js marketing site vs Electron productivity app vs mobile PWA) 3. Existing animations — Grep for motion, animate, transition, @keyframes. What durations are used? What patterns exist? 4. Component structure — Is this a creative portfolio, SaaS dashboard, marketing site, kids app, mobile app?
Motion Gap Analysis (CRITICAL - Don't Skip)
After finding existing animations, actively search for missing animations. These are UI changes that happen without any transition:
Search for conditional renders without AnimatePresence:
# Find conditional renders: {condition && <Component />}
grep -n "&&\s*(" --include="*.tsx" --include="*.jsx" -r .
# Find ternary UI swaps: {condition ? <A /> : <B />}
grep -n "?\s*<" --include="*.tsx" --include="*.jsx" -r .For each conditional render found, check:
- Is it wrapped in
<AnimatePresence>? - Does the component inside have enter/exit animations?
- If NO to both → this is a motion gap that needs fixing
Common motion gap patterns:
{isOpen && <Modal />}— Modal appears/disappears instantly{mode === "a" && <ControlsA />}— Controls swap without transition{isLoading ? <Spinner /> : <Content />}— Loading state snapsstyle={{ height: isExpanded ? 200 : 0 }}— Height changes without CSS transition- Inline styles with dynamic values but no
transitionproperty
Where to look for motion gaps:
- Inspector/settings panels with mode switches
- Conditional form fields
- Tab content areas
- Expandable/collapsible sections
- Toast/notification systems
- Loading states
- Error states
State Your Inference
After gathering context, tell the user what you found and propose a weighting:
## Reconnaissance Complete
**Project type**: [What you inferred — e.g., "Kids educational app, mobile-first PWA"]
**Existing animation style**: [What you observed — e.g., "Spring animations (500-600ms), framer-motion, active:scale patterns"]
**Likely intent**: [Your inference — e.g., "Delight and engagement for young children"]
**Motion gaps found**: [Number] conditional renders without AnimatePresence
- [List the files/areas with gaps, e.g., "Settings panel mode switches", "Loading states"]
**Proposed perspective weighting**:
- **Primary**: [Designer] — [Why]
- **Secondary**: [Designer] — [Why]
- **Selective**: [Designer] — [When applicable]
Does this approach sound right? Should I adjust the weighting before proceeding with the full audit?Use the Context-to-Perspective Mapping table in SKILL.md to propose the weighting.
Wait for User Confirmation
STOP and wait for the user to confirm or adjust. Do not proceed to the full audit until they respond.
If AskUserQuestion is available, present the decision as tappable options:
- Confirm weighting — Proceed with the proposed primary/secondary/selective designers
- Adjust primary — Swap which designer is primary (e.g., prioritize delight over restraint)
- Adjust secondary — Change the secondary lens while keeping primary
- Rebuild weighting — The project type inference was wrong; start over
Otherwise ask in plain text: "Does this weighting sound right, or should I adjust?"
If they adjust (e.g., "prioritize delight and engagement"), update your weighting accordingly.
---
STEP 2: Full Audit (After User Confirms)
Once the user confirms, perform the complete audit by reading the reference files in this order:
2a. Read the Audit Checklist First
Read `references/audit-checklist.md` — Use this as your systematic guide. It provides the structured checklist of what to evaluate.
2b. Read Designer Files for Your Weighted Perspectives
Based on your context weighting, read the relevant designer files:
- Read `references/emil-kowalski.md` if Emil is primary/secondary — Restraint philosophy, frequency rules, decision frameworks
- Read `references/jakub-krehel.md` if Jakub is primary/secondary — Production polish philosophy, what to check
- Read `references/jhey-tompkins.md` if Jhey is primary/secondary — Playful experimentation philosophy, opportunities to surface
2c. Read Topical References as Needed
- Read `references/accessibility.md` — MANDATORY. Always check for prefers-reduced-motion. No exceptions.
- Read `references/anti-checklist.md` — Apply this as the audit's quality gate. AI-slop categories at the top (pulsing indicators, hover-scale-on-everything, stagger-spam, etc.) trigger findings; perspective-specific and general anti-patterns sit below. Each category includes a frequency heuristic so single intentional uses don't trip the gate.
- Read `references/performance.md` — If you see complex animations, check for GPU optimization issues
- Read `references/motion-cookbook.md` — Reference when making specific implementation recommendations (the recommended fix code, including the per-finding demo motion in HTML mode)
---
STEP 3: Output Format (HTML by default)
The audit produces a self-contained HTML report with auto-looping CSS demos beside Critical and Important findings. Read `references/output-format.md` for the full template (both HTML mode and terminal mode).
Default behavior — write and open the HTML report
1. Resolve the write location. The file is written to motion-audits/{project-name}-{ISO-date}.html in the audited project's root.
- Audited project root: run
git rev-parse --show-toplevelfrom the agent's cwd. If it succeeds, use that path. If it fails (no.gitancestor), use cwd. - `{project-name}`: the
namefield frompackage.jsonat the project root if it exists; else thenamefield frompyproject.toml; else the basename of the project root. Strip any scoping prefix (@scope/pkg→pkg) and sanitize to lowercase kebab-case ([a-z0-9-], replace others with-). - `{ISO-date}`: today's date as
YYYY-MM-DD. - Example:
<project-root>/motion-audits/my-app-2026-05-20.html. - Do not modify
.gitignore. The user seesmotion-audits/ingit statusand decides whether to ignore it.
2. Read `references/demo-shell.html` and use it as the template for each demo card. Embed one card per Critical + Important finding (Opportunities do not get demo cards). Use the suffixed-naming contract — @keyframes motion-{n}-... and .demo-card-{n}__motion-target, {n} = the finding's 1-indexed position across the whole report — so multiple findings don't collide on CSS names.
3. Generate per-finding motion code by reading the audited code, the relevant lens reference, and references/motion-cookbook.md for the recipe. Use the shell's 0% / 66% / 100% cadence at animation-duration: 3s (~2s motion, ~1s hold, loop). The @keyframes 100% state must match the motion-target's default static rendering so the shell's prefers-reduced-motion guard shows the correct final visual.
4. Write the file. Create motion-audits/ if it doesn't exist. Write the complete self-contained HTML document.
5. Open in the default browser via OS-detected Bash dispatch:
path="<absolute path to the HTML file>"
if [ -n "$WSL_DISTRO_NAME" ] || grep -qi microsoft /proc/version 2>/dev/null; then
win_path=$(wslpath -w "$path")
cmd.exe /c start "" "$win_path" 2>/dev/null
else
case "$(uname -s)" in
Darwin) open "$path" ;;
Linux) xdg-open "$path" ;;
MINGW*|MSYS*|CYGWIN*) start "" "$path" ;;
*) echo "Unknown platform — open this file manually: $path" ;;
esac
fiIf the open command returns non-zero or the platform is unrecognized, print Open this file in your browser: {absolute path} and continue. Never abort the audit because of a failed browser-open.
6. Print the 3-line terminal summary:
🎬 Motion audit complete — 🔴 {N} Critical · 🟡 {N} Important · 🟢 {N} Opportunities
📄 Report: {absolute path}
💡 Want the full report inline instead? Re-run with --terminal or say "show inline".Terminal mode (flag-triggered)
When the user signals terminal mode (--terminal / --inline / --no-html flag, or "show the full report inline" / "skip the HTML" / "terminal only"), skip the HTML write and the browser-open and render the decorated-markdown report inline per references/output-format.md terminal mode. Do not print the 3-line summary in this case.
Do not summarize the audit content in either mode — users want full per-lens perspectives.
---
Agent Gotchas (Self-Check Before Writing the Report)
Common failure modes during HTML report generation. Most break silently or only manifest when a second finding lands in the same report.
- Don't reuse keyframe or class names across findings. Each demo uses
@keyframes motion-{n}-...and.demo-card-{n}__motion-targetwhere{n}is the 1-indexed position across the WHOLE report. Duplicate names mean the second finding shadows the first and the first demo breaks silently. - Don't redefine the shell's CSS variables. Per-finding code uses
var(--bg),var(--fg),var(--border),var(--accent),var(--loop-dim),var(--sans),var(--mono). Hard-coding colors or fonts breaks dark mode and typography consistency. - Don't write per-finding overrides inside the `prefers-reduced-motion` block. The shell's guard collapses all
[class*="__motion-target"]animations. Make the@keyframes100% state match the motion-target's default static rendering instead. - Don't include demo cards for Opportunities. Demos are reserved for Critical and Important. Surface Opportunities in text only.
- Don't animate the report itself. No entrance, scroll, or mount animations on the report chrome — only the demo cards animate. Animating the report reproduces the AI-slop patterns the audit exists to catch.
- Don't write to cwd if `git rev-parse --show-toplevel` succeeds. The report goes to
{project-root}/motion-audits/. Only fall back to cwd when git returns nonzero. - Don't abort the audit if browser-open fails. A non-zero exit code is a "no default handler" condition, not an error. Print the path and continue.
- Don't modify `.gitignore`. The skill never touches it. The user adds
motion-audits/themselves if they want. - Don't summarize per-lens findings. Each section needs its own findings + working-well items + the
Through {Designer}'s lens:summary.
---
Success Criteria
- [ ] Context gathered (CLAUDE.md, package.json, existing animations, structure)
- [ ] Motion gap analysis run — conditional renders checked for missing animation
- [ ] Weighting proposed and confirmed by the user
- [ ] Audit checklist worked through systematically
- [ ] Anti-checklist applied — AI-slop categories checked against the codebase
- [ ] Accessibility checked — prefers-reduced-motion verified (mandatory)
- [ ] HTML report written to
motion-audits/, opened in browser, 3-line summary printed (or terminal-mode report rendered inline when flagged) - [ ] Report follows output-format.md with full per-lens sections; Critical + Important findings have looping demo cards
Workflow: Create Mode
Build interactive components with purposeful motion. Light discovery, then generate against the cookbook.
Required Reading
Read before generating: 1. references/motion-cookbook.md — the recipe source for all motion code 2. references/accessibility.md — prefers-reduced-motion is mandatory in everything you generate 3. references/creation-gotchas.md — Claude's failure modes when writing motion; self-check against these
---
STEP 1: Light Discovery
Establish two things — project context and designer weighting — before generating. Keep it to 1-2 questions.
Infer First, Ask Second
Check what you can already see:
- The request — what component, what interaction, what stack (React / Framer Motion / CSS / HTML)?
- CLAUDE.md, package.json, existing components — project type and existing animation conventions (durations, easing, libraries)
Propose Context + Weighting
Map the project type to a perspective weighting using the Context-to-Perspective Mapping table in SKILL.md. State your inference in one short block:
Building: [what — e.g. "a notification toast, React + Framer Motion"]
Project context: [inferred — e.g. "productivity SaaS dashboard"]
Proposed weighting: Primary [Designer] · Secondary [Designer]If AskUserQuestion is available and the weighting is genuinely ambiguous, offer:
- Confirm — proceed with the proposed weighting
- Adjust — change primary/secondary designer
Otherwise ask in plain text: "Does this weighting sound right, or should I adjust?"
Wait Gate
For non-trivial components, confirm context before generating. For a small, well-specified request ("add a press-scale to this button"), state the inference in one line and skip straight to STEP 3 — don't manufacture a question.
---
STEP 2: Load Weighted Knowledge
Based on the confirmed weighting, read the relevant designer file(s):
- Read `references/emil-kowalski.md` if Emil is primary/secondary — restraint, the frequency rule, when NOT to animate
- Read `references/jakub-krehel.md` if Jakub is primary/secondary — production polish judgment, subtlety bar
- Read `references/jhey-tompkins.md` if Jhey is primary/secondary — playful expression, what motion could become
The designer files give you the judgment (should this animate, what feel). The cookbook gives you the code.
If the component involves complex or numerous animations, also read references/performance.md.
---
STEP 3: Generate
Build the component. Apply, in order:
1. The frequency gate (Emil) — Should this animate at all? High-frequency or keyboard-initiated interactions get minimal or no motion. Decide before adding anything. 2. Recipes from the cookbook — Use the weighted designer's patterns. Enter = opacity + translateY + blur. Exit subtler than enter. Custom easing or springs, never bare ease. 3. Accessibility — Every animation ships with prefers-reduced-motion handling, in the same code. No exceptions, no follow-up. 4. Performance — Animate transform / opacity / filter only. Never width / height / top / left. 5. Context-appropriate timing — Emil-weighted → under 300ms. Jakub → 200-500ms polish. Jhey → whatever serves the effect.
---
STEP 4: Self-Check
Before presenting, verify the generated code against every item in references/creation-gotchas.md. Fix anything that matches a gotcha.
Then briefly tell the user the motion decisions you made and why — which designer weighting drove the timing, easing, and whether something was deliberately left un-animated.
---
Success Criteria
- [ ] Context and weighting confirmed (or inference stated for trivial requests)
- [ ] Frequency gate applied — motion is purposeful, not decorative-by-default
- [ ] Recipes drawn from the cookbook, matched to the designer weighting
- [ ]
prefers-reduced-motionhandled in all generated motion - [ ] Only
transform/opacity/filteranimated - [ ] Code self-checked against creation-gotchas.md
- [ ] Motion decisions explained to the user
Related skills
How it compares
Use design-motion-principles for expert-framed motion audits and micro-interactions; use a general frontend skill for layout, routing, or data fetching.
FAQ
What frameworks does design-motion-principles support?
design-motion-principles supports React, Framer Motion, CSS, and HTML for transitions, hover states, enter/exit animations, and micro-interactions in both build and audit workflows.
What does the audit mode output?
Audit mode from design-motion-principles produces a branded HTML report with looping demos, applying weighted guidance from Emil Kowalski, Jakub Krehel, and Jhey Tompkins to flag weak or generic motion patterns.
Can design-motion-principles build new animations?
Yes—design-motion-principles build mode creates interactive components with purposeful motion using context-aware weighting across the three referenced designer techniques, not just critique.
Is Design Motion Principles safe to install?
skills.sh reports 3 of 3 security scanners passed. Review the Security Audits panel on this page before installing in production.