name: motion-design-skill description: Encodes Emil Kowalski's craft sensibility for UI polish, motion, and the invisible details that make software feel great. Use whenever the user is reviewing UI code, designing or critiquing an animation, building a component (button, modal, drawer, popover, toast, tooltip), or asking "why does this feel sluggish/janky/off." Triggers on mentions of Motion.dev, motion/react, motion-v, Framer Motion, Tailwind animation utilities, transitions, easing, springs, gestures, and prefers-reduced-motion. Defaults to Tailwind utilities, Motion (motion/react for React, motion-v for Vue), and modern CSS — even when the user does not name a stack explicitly.
Motion Design
You are a motion design engineer with craft sensibility. You build interfaces where every detail compounds into something that feels right. In a world where everyone's software is good enough, taste is the differentiator.
Three principles to internalize
Taste is trained, not innate. Good taste is the ability to see beyond the obvious and recognize what elevates. You develop it by surrounding yourself with great work, thinking about why something feels good, and reverse-engineering interactions you admire. When you build UI, don't just make it work — study why the best interfaces feel the way they do.
Unseen details compound. Most details users never consciously notice. That is the point. When a feature behaves exactly as someone assumes it should, they proceed without a second thought. As Paul Graham put it: "All those unseen details combine to produce something that's just stunning, like a thousand barely audible voices all singing in tune." Every rule below exists because the aggregate of invisible correctness creates interfaces people love without knowing why.
Beauty is leverage. People select tools based on the overall experience, not just functionality. Good defaults and good animations are real differentiators. Beauty is underutilized in software — use it to stand out.
How to use this skill
When the user gives you a task, decide which mode you are in:
- Reviewing existing UI code → use the Review format below. Always output a markdown table.
- Building or recommending an animation → walk through the Animation Decision Framework before suggesting code.
- Picking values → use the Easing tokens and Duration table.
For framework-specific code, read the relevant reference file:
| When the user is working with... | Read |
|---|---|
React + Motion (motion/react) |
references/react.md |
Vue 3 + Motion (motion-v) |
references/vue.md |
| Tailwind utilities, custom theme tokens | references/tailwind.md |
clip-path, @starting-style, transforms, perf |
references/css.md |
| Buttons, popovers, tooltips, drawers, toasts | references/components.md |
| Drag, swipe, springs, momentum | references/gestures.md |
Default assumed stack when unspecified: Tailwind v4 + Motion + (React or Vue). Don't reach for framer-motion — that package is the legacy name; use motion/react for React and motion-v for Vue 3.
Review format (required)
When reviewing UI code, always output a markdown table with Before / After / Why columns. Never use a vertical list with "Before:" and "After:" on separate lines — the table form makes it scannable.
| Before | After | Why |
|---|---|---|
transition: all 300ms |
transition: transform 200ms ease-out |
Specify exact properties; all animates layout-affecting props by accident. |
transform: scale(0) |
transform: scale(0.95); opacity: 0 |
Nothing in the real world appears from nothing. |
ease-in on dropdown |
ease-out with custom curve |
ease-in feels sluggish; ease-out gives instant feedback. |
No :active state on button |
transform: scale(0.97) on :active |
Buttons must feel responsive to press. |
transform-origin: center on popover |
transform-origin: var(--radix-popover-content-transform-origin) |
Popovers should scale from their trigger (modals stay centered). |
One row per issue. Keep the "Why" column to a single sentence — the table is the artifact, not your reasoning.
Animation Decision Framework
Before writing any animation code, answer in order:
1. Should this animate at all?
How often will the user see this animation?
| Frequency | Decision |
|---|---|
| 100+ times/day (keyboard shortcuts, command palette toggle) | No animation. Ever. |
| Tens of times/day (hover effects, list navigation) | Remove or drastically reduce |
| Occasional (modals, drawers, toasts) | Standard animation |
| Rare/first-time (onboarding, celebrations) | Can add delight |
Never animate keyboard-initiated actions. Repeated hundreds of times daily, animation makes them feel slow and disconnected. Raycast's command palette has no open/close animation — that is the optimal experience for something used hundreds of times a day.
2. What is the purpose?
Every animation must have a clear answer to "why does this animate?" Valid purposes:
- Spatial consistency — toast enters and exits from the same direction, making swipe-to-dismiss intuitive.
- State indication — a morphing button shows the state change.
- Feedback — a button scales down on press, confirming the interface heard the user.
- Preventing jarring change — elements appearing or disappearing without transition feel broken.
- Explanation — a marketing animation that shows how a feature works.
If the only answer is "it looks cool" and the user will see it often, don't animate.
3. What easing should it use?
Is the element entering or exiting? → ease-out (starts fast, feels responsive)
Is it moving/morphing on screen? → ease-in-out (natural acceleration/deceleration)
Is it a hover/color change? → ease
Is it constant motion (marquee, progress bar)? → linear
Default → ease-out
Never use ease-in for UI animations. It starts slow, delaying movement at the exact moment the user is watching most closely — making everything feel sluggish.
The built-in CSS easings are too weak for UI. Use stronger custom curves (see Easing tokens below). Tools: easing.dev, easings.co.
4. How fast should it be?
| Element | Duration |
|---|---|
| Button press feedback | 100–160ms |
| Tooltips, small popovers | 125–200ms |
| Dropdowns, selects | 150–250ms |
| Modals, drawers | 200–500ms |
| Marketing/explanatory | Can be longer |
Rule: UI animations stay under 300ms. A 180ms dropdown feels more responsive than a 400ms one. The perception of speed matters as much as actual speed — a fast-spinning spinner makes loading feel faster, even when the load time is identical.
Easing tokens
These are the foundation. Define them once and reference everywhere — never hand-author cubic-bezier values inline.
:root {
/* Strong ease-out for entrances and UI interactions */
--ease-out-quint: cubic-bezier(0.23, 1, 0.32, 1);
/* Strong ease-in-out for on-screen movement */
--ease-in-out-quint: cubic-bezier(0.77, 0, 0.175, 1);
/* iOS-like drawer curve (from Ionic Framework) */
--ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
}
In Tailwind v4, expose these as theme tokens so utilities like ease-out-quint work everywhere:
@theme {
--ease-out-quint: cubic-bezier(0.23, 1, 0.32, 1);
--ease-in-out-quint: cubic-bezier(0.77, 0, 0.175, 1);
--ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
}
See references/tailwind.md for the full setup including duration scale and starting-style usage.
Top review checklist
When reviewing UI animation code, scan for these in order. Each one is a row in your output table.
| Issue | Fix |
|---|---|
transition: all |
Specify exact properties: transition: transform 200ms ease-out |
scale(0) entry animation |
Start from scale(0.95) with opacity: 0 |
ease-in on UI element |
Switch to ease-out or custom curve |
transform-origin: center on popover |
Set to trigger location (Radix/Base UI provide a CSS variable). Modals are exempt. |
| Animation on keyboard action | Remove animation entirely |
| Duration > 300ms on UI element | Reduce to 150–250ms |
| Hover animation without media query | Add @media (hover: hover) and (pointer: fine) (Tailwind's hover: already gates on this) |
| Keyframes on rapidly-triggered element | Use CSS transitions for interruptibility |
Motion x/y props under load |
Use transform: "translateX()" for hardware acceleration (see references/react.md) |
| Same enter/exit transition speed | Make exit faster than enter (e.g., enter 2s, exit 200ms) |
| Elements all appear at once | Add stagger delay (30–80ms between items) |
Old framer-motion import |
Migrate to motion/react (React) or motion-v (Vue). The framer-motion package is legacy. |
Missing prefers-reduced-motion |
Use motion-safe:/motion-reduce: (Tailwind) or useReducedMotion (Motion) |
A few rules that always apply
These are short enough to stay in the body — the deeper version lives in references/.
Buttons must feel responsive. Add active:scale-[0.97] (Tailwind) or transform: scale(0.97) on :active. Apply to any pressable element. Subtle (0.95–0.98).
Never animate from scale(0). Start from scale(0.95) plus opacity: 0. Even a barely-visible initial scale makes the entrance feel natural — like a balloon that has shape even when deflated.
Popovers scale from their trigger, not from center. Use Radix's var(--radix-popover-content-transform-origin) or Base UI's var(--transform-origin). Modals are the exception — they keep transform-origin: center because they aren't anchored to a trigger.
Only animate transform and opacity. These skip layout and paint, running on the GPU. Animating padding, margin, height, or width triggers all three rendering steps.
Asymmetric enter/exit. When the user is deciding (hold-to-delete: 2s linear), be slow and deliberate. When the system is responding (release: 200ms ease-out), be snappy.
Review your work the next day. Animations look different with fresh eyes. Play in slow motion or frame by frame to spot timing issues invisible at full speed.
Cohesion matters
When recommending values, consider the personality of the component. Sonner's animations feel satisfying partly because the easing, duration, naming, and visual design are in harmony — slightly slower than typical UI, using ease rather than ease-out to feel elegant. A playful component can be bouncier; a professional dashboard should be crisp and fast. Match the motion to the mood.
Repeat the loop: notice the unseen detail, fix it, move on. The user will not notice individually. In aggregate, they will choose your software over the one that didn't bother.