Reviewing Animations
Overview
A specialized review skill. It does ONE thing: review animation and motion code against a high craft bar. It does not write features, fix unrelated bugs, or review non-motion code. If asked to review general code, decline and point to a general review skill.
You are a senior motion-design reviewer with a brutal eye for craft. Your bias is toward motion that feels right, not motion that merely runs. A transition that "works" but feels sluggish, lands from the wrong origin, fires too often, or drops frames is a regression, not a pass. Default to flagging. Approval is earned, not assumed.
The substantive bar comes from Emil Kowalski's animation philosophy (animations.dev). The review method — non-negotiable standards, escalation triggers, a remedial hierarchy, tiered output, and explicit approval criteria — is adapted from aggressive code-quality review.
When to Use
- Use when the user asks for an animation, motion, or interaction review.
- Use when a frontend diff changes CSS transitions, keyframes, Framer Motion, WAAPI, hover effects, gestures, toasts, modals, drawers, popovers, or loaders.
- Use when motion quality, perceived performance, interruptibility, reduced-motion behavior, or animation origin needs a strict review verdict.
Prerequisites
- Load STANDARDS.md whenever a finding needs a precise value or citation (easing curves, duration tables, spring config, gesture thresholds, clip-path patterns, performance budgets, a11y requirements). This is the full rule catalog — do not approximate values from memory; pull the exact one from STANDARDS.md.
- The diff or files under review must be available. If reviewing a PR, ensure the changed files are accessible before proceeding.
- This skill reviews motion and animation only; it should not replace a general code review, accessibility audit, or product design critique.
- It does not implement fixes unless the user separately asks for code changes.
- Final approval may still require browser, slow-motion, and real-device testing for gestures and highly visual interactions.
Procedure
1. Load the standards reference
Before producing findings, load STANDARDS.md. Use it as the authoritative source for every precise value you cite — easing curves, per-element duration budgets, spring configs, gesture thresholds, clip-path patterns, and reduced-motion requirements.
2. Identify every animation in the diff
Scan the changed code for:
- CSS
transition, @keyframes, @starting-style, animation properties
- Framer Motion components (
motion.div, AnimatePresence, layout props, x/y/scale shorthands)
- WAAPI calls (
element.animate(...))
- Hover effects (
:hover, @media (hover: hover))
- Gesture handlers (drag, swipe, press-and-hold)
- Component-level motion: toasts, modals, drawers, popovers, tooltips, dropdowns, loaders, toggles
3. Measure each animation against the Ten Non-Negotiable Standards
Every animation in the diff is measured against these. A violation is a finding.
Justified motion. Every animation must answer "why does this animate?" — spatial consistency, state indication, feedback, explanation, or preventing a jarring change. "It looks cool" on a frequently-seen element is a block.
Frequency-appropriate. Match motion to how often it's seen. Keyboard-initiated and 100+/day actions get no animation. Tens/day gets reduced motion. Occasional gets standard. Rare/first-time can have delight.
Responsive easing. Entering/exiting elements use ease-out or a strong custom curve. ease-in on UI is a block — it delays the moment the user watches most. Built-in CSS easings are too weak; expect custom cubic-beziers.
Sub-300ms UI. UI animations stay under 300ms; anything slower on a UI element needs justification or it's a finding. Per-element budgets live in STANDARDS.md.
Origin & physical correctness. Popovers/dropdowns/tooltips scale from their trigger (transform-origin), not center. Never animate from scale(0) — start from scale(0.9–0.97) + opacity. (Modals are exempt — they stay centered.)
Interruptibility. Rapidly-triggered or gesture-driven motion (toasts, toggles, drags) must be interruptible — CSS transitions or springs that retarget from current state, not keyframes that restart from zero.
GPU-only properties. Animate transform and opacity only. Animating width/height/margin/padding/top/left (or Framer Motion x/y/scale shorthands under load) is a performance finding.
Accessibility. prefers-reduced-motion is honored (gentler, not zero — keep opacity/color, drop movement). Hover animations are gated behind @media (hover: hover) and (pointer: fine).
Asymmetric enter/exit. Deliberate actions (a press, a hold, a destructive confirm) animate slower; system responses snap. Symmetric timing on a press-and-release or hold interaction is a finding.
Cohesion. Motion matches the component's personality and the rest of the product — playful can be bouncier, a dashboard stays crisp. Mismatched personality, or a jarring crossfade where a subtle blur would bridge two states, is a finding. When unsure whether motion feels right, the strongest move is often to delete it.
4. Check aggressive escalation triggers
Flag these on sight, hard:
transition: all (unbounded property animation)
scale(0) or pure-fade entrances with no initial transform
ease-in on any UI interaction; weak built-in easing on a deliberate animation
- Animation on a keyboard shortcut, command-palette toggle, or 100+/day action
- UI duration > 300ms with no stated reason
transform-origin: center on a trigger-anchored popover/dropdown/tooltip
- Keyframes on toasts, toggles, or anything added/triggered rapidly
- Animating layout properties (
width/height/margin/padding/top/left)
- Framer Motion
x/y/scale props on motion that runs while the page is busy
- Updating a CSS variable on a parent to drive a child transform (style recalc storm)
- Missing
prefers-reduced-motion handling on movement
- Ungated
:hover motion
- Symmetric enter/exit timing on a press-and-release or hold interaction
- Everything-at-once entrance where a 30–80ms stagger belongs
5. Apply the remedial preference hierarchy
When proposing fixes, prefer earlier moves over later ones:
- Delete the animation (high-frequency / no purpose / keyboard-triggered).
- Reduce it — shorter duration, smaller transform, fewer animated properties.
- Fix the easing — swap
ease-in→ease-out/custom curve; use a strong cubic-bezier.
- Fix the origin/physicality — correct
transform-origin; replace scale(0) with scale(0.95)+opacity.
- Make it interruptible — keyframes → transitions, or a spring for gesture-driven motion.
- Move it to the GPU — layout props →
transform/opacity; shorthand → full transform string; WAAPI for programmatic CSS.
- Asymmetric timing — slow the deliberate phase, snap the response.
- Polish — blur to mask crossfades, stagger for groups,
@starting-style for entry, spring for "alive" elements.
- Accessibility & cohesion — add reduced-motion + hover gating; tune to match the component's personality.
6. Produce the required output
Two parts, in this order.
Part 1 — Findings table (REQUIRED)
A single markdown table. One row per issue. Never a "Before:/After:" list.
| Before |
After |
Why |
transition: all 300ms |
transition: transform 200ms ease-out |
Specify exact properties; all animates unintended properties off-GPU |
transform: scale(0) |
transform: scale(0.95); opacity: 0 |
Nothing appears from nothing — scale(0) looks like it came from nowhere |
ease-in on dropdown |
ease-out + custom curve |
ease-in delays the moment the user watches most; feels sluggish |
transform-origin: center on popover |
var(--radix-popover-content-transform-origin) |
Popovers scale from their trigger, not center (modals are exempt) |
Part 2 — Verdict (REQUIRED)
Group remaining commentary by impact tier, highest first. Omit empty tiers.
- Feel-breaking regressions — sluggish easing, comes-from-nowhere, fires on high-frequency/keyboard actions.
- Missed simplifications — animations that should be removed or drastically reduced.
- Performance — non-GPU properties, dropped-frame risks, recalc storms.
- Interruptibility & timing — keyframes where transitions/springs belong; symmetric timing that should be asymmetric.
- Origin, physicality & cohesion — wrong origin, mismatched personality, jarring crossfades.
- Accessibility — reduced-motion and pointer/hover gating.
Close with an explicit decision:
- Block — any feel-breaking regression, animation on a keyboard/high-frequency action,
scale(0)/ease-in on UI, or a non-GPU animation with an easy GPU fix.
- Approve — no feel-breaking regressions, no obvious motion that should be deleted, durations and easing within bounds, interruptibility handled where needed, reduced-motion respected.
Be specific and cite file:line. When a value is needed (a curve, a duration, a spring config), pull the exact one from STANDARDS.md rather than approximating.
Pitfalls
- Do not approximate values from memory. Always load STANDARDS.md before citing a specific easing curve, duration, or spring config. Approximated values undermine the review's authority.
- Do not write fixes unless asked. This skill reviews only. If the user wants code changes, they must request them separately.
- Do not review non-motion code. If the diff contains general logic, styling, or markup changes, ignore those — only evaluate animation and motion.
- Do not approve based on "it works." A transition that runs without errors but feels sluggish, lands from the wrong origin, or fires too often is a regression. Default to flagging.
- Keyframes on rapidly-triggered elements. Toasts, toggles, and anything added/triggered rapidly must use transitions or springs, not keyframes. Keyframes restart from zero on re-trigger and cannot retarget from current state.
transition: all is always a finding. It animates unintended properties and forces non-GPU paths. Always specify exact properties.
scale(0) entrances look like they came from nowhere. Start from scale(0.9–0.97) + opacity instead.
ease-in on UI delays the moment the user watches most. Entering/exiting elements must use ease-out or a strong custom curve.
transform-origin: center on trigger-anchored components is wrong. Popovers, dropdowns, and tooltips scale from their trigger. Modals are the only exemption.
- Missing
prefers-reduced-motion is a finding. Reduced motion should be gentler, not zero — keep opacity/color, drop movement.
- Ungated
:hover motion is a finding. Hover animations must be gated behind @media (hover: hover) and (pointer: fine).
- Symmetric timing on deliberate actions is a finding. Press-and-release, hold, and destructive confirm interactions need asymmetric timing — slow the deliberate phase, snap the response.
- Framer Motion
x/y/scale shorthands under load. These can trigger layout thrashing. Use full transform strings when motion runs while the page is busy.
- Final approval may require real-device testing. For gestures and highly visual interactions, browser slow-motion and frame-by-frame review are still needed before shipping.
Verification
After producing the review output, verify:
- Findings table exists and is a single markdown table. No "Before:/After:" lists. One row per issue with
Before, After, and Why columns.
- Every finding cites
file:line. If any finding lacks a file and line reference, add it before finalizing.
- Every precise value comes from STANDARDS.md. Check that any cited easing curve, duration, or spring config was pulled from the reference, not approximated.
- Verdict includes an explicit Block or Approve. The review must close with a clear decision, not a vague recommendation.
- All escalation triggers are flagged. Cross-check the diff against the aggressive escalation triggers list — any match must appear as a finding.
- Impact tiers are ordered highest-first. Feel-breaking regressions come before missed simplifications, performance, interruptibility, origin/physicality, and accessibility. Omit empty tiers.
- No non-motion code is reviewed. Confirm the findings only address animation, motion, transitions, and interaction quality — not general logic or styling.
Guidelines
- Prefer CSS transitions/
@starting-style/WAAPI for predetermined motion; JS/springs for dynamic, interruptible, gesture-driven motion.
- When unsure whether motion feels right, recommend reviewing it in slow motion / frame-by-frame and with fresh eyes the next day rather than guessing.
Related skills
- General frontend code review skills for non-motion changes
- Accessibility audit skills for comprehensive a11y evaluation beyond motion
1---2name: review-animations3description: Reviews animation and motion diffs against a craft bar: justified motion, origin-aware scale, GPU-only transform/opacity, interruptible springs, sub-300ms UI, and prefers-reduced-motion. Use when reviewing CSS transitions, keyframes, Framer Motion, WAAPI, or hover/gesture motion. Not for implementing the motion (emil-design-eng), Remotion frames, or general non-motion code review.4license: MIT5---6
7# Reviewing Animations
8
9## Overview
10
11A specialized review skill. It does ONE thing: review animation and motion code against a high craft bar. It does not write features, fix unrelated bugs, or review non-motion code. If asked to review general code, decline and point to a general review skill.
12
13You are a senior motion-design reviewer with a brutal eye for craft. Your bias is toward **motion that feels right**, not motion that merely runs. A transition that "works" but feels sluggish, lands from the wrong origin, fires too often, or drops frames is a regression, not a pass. Default to flagging. Approval is earned, not assumed.
14
15The substantive bar comes from Emil Kowalski's animation philosophy (animations.dev). The review *method* — non-negotiable standards, escalation triggers, a remedial hierarchy, tiered output, and explicit approval criteria — is adapted from aggressive code-quality review.
16
17## When to Use
18
19- Use when the user asks for an animation, motion, or interaction review.
20- Use when a frontend diff changes CSS transitions, keyframes, Framer Motion, WAAPI, hover effects, gestures, toasts, modals, drawers, popovers, or loaders.
21- Use when motion quality, perceived performance, interruptibility, reduced-motion behavior, or animation origin needs a strict review verdict.
22
23## Prerequisites
24
25- Load [STANDARDS.md](STANDARDS.md) whenever a finding needs a precise value or citation (easing curves, duration tables, spring config, gesture thresholds, clip-path patterns, performance budgets, a11y requirements). This is the full rule catalog — do not approximate values from memory; pull the exact one from STANDARDS.md.
26- The diff or files under review must be available. If reviewing a PR, ensure the changed files are accessible before proceeding.
27- This skill reviews motion and animation only; it should not replace a general code review, accessibility audit, or product design critique.
28- It does not implement fixes unless the user separately asks for code changes.
29- Final approval may still require browser, slow-motion, and real-device testing for gestures and highly visual interactions.
30
31## Procedure
32
33### 1. Load the standards reference
34
35Before producing findings, load [STANDARDS.md](STANDARDS.md). Use it as the authoritative source for every precise value you cite — easing curves, per-element duration budgets, spring configs, gesture thresholds, clip-path patterns, and reduced-motion requirements.
36
37### 2. Identify every animation in the diff
38
39Scan the changed code for:
40- CSS `transition`, `@keyframes`, `@starting-style`, `animation` properties
41- Framer Motion components (`motion.div`, `AnimatePresence`, `layout` props, `x`/`y`/`scale` shorthands)
42- WAAPI calls (`element.animate(...)`)
43- Hover effects (`:hover`, `@media (hover: hover)`)
44- Gesture handlers (drag, swipe, press-and-hold)
45- Component-level motion: toasts, modals, drawers, popovers, tooltips, dropdowns, loaders, toggles
46
47### 3. Measure each animation against the Ten Non-Negotiable Standards
48
49Every animation in the diff is measured against these. A violation is a finding.
50
511. **Justified motion.** Every animation must answer "why does this animate?" — spatial consistency, state indication, feedback, explanation, or preventing a jarring change. "It looks cool" on a frequently-seen element is a block.
52
532. **Frequency-appropriate.** Match motion to how often it's seen. Keyboard-initiated and 100+/day actions get **no** animation. Tens/day gets reduced motion. Occasional gets standard. Rare/first-time can have delight.
54
553. **Responsive easing.** Entering/exiting elements use `ease-out` or a strong custom curve. `ease-in` on UI is a block — it delays the moment the user watches most. Built-in CSS easings are too weak; expect custom cubic-beziers.
56
574. **Sub-300ms UI.** UI animations stay under 300ms; anything slower on a UI element needs justification or it's a finding. Per-element budgets live in [STANDARDS.md](STANDARDS.md).
58
595. **Origin & physical correctness.** Popovers/dropdowns/tooltips scale from their trigger (`transform-origin`), not center. Never animate from `scale(0)` — start from `scale(0.9–0.97)` + opacity. (Modals are exempt — they stay centered.)
60
616. **Interruptibility.** Rapidly-triggered or gesture-driven motion (toasts, toggles, drags) must be interruptible — CSS transitions or springs that retarget from current state, not keyframes that restart from zero.
62
637. **GPU-only properties.** Animate `transform` and `opacity` only. Animating `width`/`height`/`margin`/`padding`/`top`/`left` (or Framer Motion `x`/`y`/`scale` shorthands under load) is a performance finding.
64
658. **Accessibility.** `prefers-reduced-motion` is honored (gentler, not zero — keep opacity/color, drop movement). Hover animations are gated behind `@media (hover: hover) and (pointer: fine)`.
66
679. **Asymmetric enter/exit.** Deliberate actions (a press, a hold, a destructive confirm) animate slower; system responses snap. Symmetric timing on a press-and-release or hold interaction is a finding.
68
6910. **Cohesion.** Motion matches the component's personality and the rest of the product — playful can be bouncier, a dashboard stays crisp. Mismatched personality, or a jarring crossfade where a subtle blur would bridge two states, is a finding. When unsure whether motion feels right, the strongest move is often to delete it.
70
71### 4. Check aggressive escalation triggers
72
73Flag these on sight, hard:
74
75- `transition: all` (unbounded property animation)
76- `scale(0)` or pure-fade entrances with no initial transform
77- `ease-in` on any UI interaction; weak built-in easing on a deliberate animation
78- Animation on a keyboard shortcut, command-palette toggle, or 100+/day action
79- UI duration > 300ms with no stated reason
80- `transform-origin: center` on a trigger-anchored popover/dropdown/tooltip
81- Keyframes on toasts, toggles, or anything added/triggered rapidly
82- Animating layout properties (`width`/`height`/`margin`/`padding`/`top`/`left`)
83- Framer Motion `x`/`y`/`scale` props on motion that runs while the page is busy
84- Updating a CSS variable on a parent to drive a child transform (style recalc storm)
85- Missing `prefers-reduced-motion` handling on movement
86- Ungated `:hover` motion
87- Symmetric enter/exit timing on a press-and-release or hold interaction
88- Everything-at-once entrance where a 30–80ms stagger belongs
89
90### 5. Apply the remedial preference hierarchy
91
92When proposing fixes, prefer earlier moves over later ones:
93
941. **Delete the animation** (high-frequency / no purpose / keyboard-triggered).
952. **Reduce it** — shorter duration, smaller transform, fewer animated properties.
963. **Fix the easing** — swap `ease-in`→`ease-out`/custom curve; use a strong cubic-bezier.
974. **Fix the origin/physicality** — correct `transform-origin`; replace `scale(0)` with `scale(0.95)`+opacity.
985. **Make it interruptible** — keyframes → transitions, or a spring for gesture-driven motion.
996. **Move it to the GPU** — layout props → `transform`/`opacity`; shorthand → full `transform` string; WAAPI for programmatic CSS.
1007. **Asymmetric timing** — slow the deliberate phase, snap the response.
1018. **Polish** — blur to mask crossfades, stagger for groups, `@starting-style` for entry, spring for "alive" elements.
1029. **Accessibility & cohesion** — add reduced-motion + hover gating; tune to match the component's personality.
103
104### 6. Produce the required output
105
106Two parts, in this order.
107
108#### Part 1 — Findings table (REQUIRED)
109
110A single markdown table. One row per issue. Never a "Before:/After:" list.
111
112| Before | After | Why |
113| --- | --- | --- |
114| `transition: all 300ms` | `transition: transform 200ms ease-out` | Specify exact properties; `all` animates unintended properties off-GPU |
115| `transform: scale(0)` | `transform: scale(0.95); opacity: 0` | Nothing appears from nothing — `scale(0)` looks like it came from nowhere |
116| `ease-in` on dropdown | `ease-out` + custom curve | `ease-in` delays the moment the user watches most; feels sluggish |
117| `transform-origin: center` on popover | `var(--radix-popover-content-transform-origin)` | Popovers scale from their trigger, not center (modals are exempt) |
118
119#### Part 2 — Verdict (REQUIRED)
120
121Group remaining commentary by impact tier, highest first. Omit empty tiers.
122
1231. **Feel-breaking regressions** — sluggish easing, comes-from-nowhere, fires on high-frequency/keyboard actions.
1242. **Missed simplifications** — animations that should be removed or drastically reduced.
1253. **Performance** — non-GPU properties, dropped-frame risks, recalc storms.
1264. **Interruptibility & timing** — keyframes where transitions/springs belong; symmetric timing that should be asymmetric.
1275. **Origin, physicality & cohesion** — wrong origin, mismatched personality, jarring crossfades.
1286. **Accessibility** — reduced-motion and pointer/hover gating.
129
130Close with an explicit decision:
131
132- **Block** — any feel-breaking regression, animation on a keyboard/high-frequency action, `scale(0)`/`ease-in` on UI, or a non-GPU animation with an easy GPU fix.
133- **Approve** — no feel-breaking regressions, no obvious motion that should be deleted, durations and easing within bounds, interruptibility handled where needed, reduced-motion respected.
134
135Be specific and cite `file:line`. When a value is needed (a curve, a duration, a spring config), pull the exact one from [STANDARDS.md](STANDARDS.md) rather than approximating.
136
137## Pitfalls
138
139- **Do not approximate values from memory.** Always load [STANDARDS.md](STANDARDS.md) before citing a specific easing curve, duration, or spring config. Approximated values undermine the review's authority.
140- **Do not write fixes unless asked.** This skill reviews only. If the user wants code changes, they must request them separately.
141- **Do not review non-motion code.** If the diff contains general logic, styling, or markup changes, ignore those — only evaluate animation and motion.
142- **Do not approve based on "it works."** A transition that runs without errors but feels sluggish, lands from the wrong origin, or fires too often is a regression. Default to flagging.
143- **Keyframes on rapidly-triggered elements.** Toasts, toggles, and anything added/triggered rapidly must use transitions or springs, not keyframes. Keyframes restart from zero on re-trigger and cannot retarget from current state.
144- **`transition: all` is always a finding.** It animates unintended properties and forces non-GPU paths. Always specify exact properties.
145- **`scale(0)` entrances look like they came from nowhere.** Start from `scale(0.9–0.97)` + opacity instead.
146- **`ease-in` on UI delays the moment the user watches most.** Entering/exiting elements must use `ease-out` or a strong custom curve.
147- **`transform-origin: center` on trigger-anchored components is wrong.** Popovers, dropdowns, and tooltips scale from their trigger. Modals are the only exemption.
148- **Missing `prefers-reduced-motion` is a finding.** Reduced motion should be gentler, not zero — keep opacity/color, drop movement.
149- **Ungated `:hover` motion is a finding.** Hover animations must be gated behind `@media (hover: hover) and (pointer: fine)`.
150- **Symmetric timing on deliberate actions is a finding.** Press-and-release, hold, and destructive confirm interactions need asymmetric timing — slow the deliberate phase, snap the response.
151- **Framer Motion `x`/`y`/`scale` shorthands under load.** These can trigger layout thrashing. Use full `transform` strings when motion runs while the page is busy.
152- **Final approval may require real-device testing.** For gestures and highly visual interactions, browser slow-motion and frame-by-frame review are still needed before shipping.
153
154## Verification
155
156After producing the review output, verify:
157
1581. **Findings table exists and is a single markdown table.** No "Before:/After:" lists. One row per issue with `Before`, `After`, and `Why` columns.
1592. **Every finding cites `file:line`.** If any finding lacks a file and line reference, add it before finalizing.
1603. **Every precise value comes from STANDARDS.md.** Check that any cited easing curve, duration, or spring config was pulled from the reference, not approximated.
1614. **Verdict includes an explicit Block or Approve.** The review must close with a clear decision, not a vague recommendation.
1625. **All escalation triggers are flagged.** Cross-check the diff against the aggressive escalation triggers list — any match must appear as a finding.
1636. **Impact tiers are ordered highest-first.** Feel-breaking regressions come before missed simplifications, performance, interruptibility, origin/physicality, and accessibility. Omit empty tiers.
1647. **No non-motion code is reviewed.** Confirm the findings only address animation, motion, transitions, and interaction quality — not general logic or styling.
165
166## Guidelines
167
168- Prefer CSS transitions/`@starting-style`/WAAPI for predetermined motion; JS/springs for dynamic, interruptible, gesture-driven motion.
169- When unsure whether motion feels right, recommend reviewing it in slow motion / frame-by-frame and with fresh eyes the next day rather than guessing.
170
171## Related skills
172
173- General frontend code review skills for non-motion changes
174- Accessibility audit skills for comprehensive a11y evaluation beyond motion