Animation Systems (Stripe × Linear × Apple × Vercel)
This skill helps you ship tasteful, product-grade motion.
Not “more animation.”
Better animation: clarity, hierarchy, feedback, and delight—without jank.
The goals (why motion exists)
Use animation to:
- Explain hierarchy (what matters)
- Confirm action (feedback)
- Guide attention (where to look next)
- Maintain continuity (spatial relationships)
- Add polish (craft signals)
If an animation doesn’t serve one of these, delete it.
The Stripe/Linear/Apple/Vercel style (shared traits)
1) Restraint
- Fewer animations, better chosen.
- One strong hero moment; the rest is supporting motion.
2) Clear choreography
- Primary element moves first.
- Secondary elements follow with small stagger.
- Motion establishes a “reading order.”
3) Physical but not cartoony
- Use easing that feels human (soft acceleration + gentle settle).
- Avoid bouncy defaults for serious product UI.
4) Texture + depth (subtle)
- Small parallax, soft shadows, blur fades, light beams.
- Avoid heavy 3D unless it’s the hero.
Motion primitives (build these first)
Think in primitives you can reuse everywhere.
A) Fade + rise (default entrance)
Use for: text blocks, cards, modals.
- Opacity: 0 → 1
- Y: 12–24px → 0
- Duration: 300–700ms depending on size
B) Scale + fade (micro emphasis)
Use for: popovers, toasts, selected states.
- Scale: 0.98 → 1
- Opacity: 0 → 1
C) Slide (navigation)
Use for: drawers, step transitions.
- Use transform translate; avoid animating layout.
D) Morph / shared element (high craft)
Use for: tab indicators, expanding cards.
- Requires consistent geometry + measured layout.
Defaults (practical numbers)
Use these as a starting system.
Durations (rule of thumb)
- Micro (hover/press): 120–200ms
- UI state change (toggle, select): 180–260ms
- Small transitions (popover, toast): 220–320ms
- Page section entrance: 400–800ms
- Hero sequences: 800–1600ms (with internal beats)
Easing (safe set)
Pick a small set and reuse.
- UI: ease-out with gentle settle
- Emphasis: slightly stronger ease
- Entering: ease-out
- Exiting: ease-in (faster)
If implementing:
- Use your animation library’s “power2.out / expo.out” equivalents.
- Avoid elastic/bounce unless brand is playful.
Stagger
- 40–90ms per element (text lines/cards)
- Use smaller stagger on mobile
Choreography patterns
1) “Hero → supporting elements”
- Hero visual animates in first.
- Headline appears next.
- CTA appears last.
2) “Section reveal on scroll”
- Trigger when section is ~20–30% visible.
- Animate once (don’t replay on tiny scroll).
3) “Hover: lift + glow”
- Y: -2 to -6px
- Shadow: subtle increase
- Optional: border/gradient glow
4) “Focus ring + micro shift”
- For form fields: focus ring + tiny scale/translate for responsiveness.
Performance rules (non‑negotiable)
Animate the right properties
Prefer:
transform (translate/scale/rotate)
opacity
Avoid (unless necessary):
- width/height/top/left
- expensive filters on large areas
Respect the GPU
- Clamp device pixel ratio in heavy canvases (1–2)
- Keep blur subtle and small
- Avoid many simultaneous animated shadows
Reduce reflows
- Don’t measure layout every frame.
- For scroll effects, use a library that batches reads/writes.
Accessibility: Reduced Motion
Always support prefers-reduced-motion.
Policy:
- Keep content visible.
- Replace motion with instant state + subtle opacity.
- Disable scroll-scrub/pin.
Ask the user:
- “Do you want a reduced-motion mode that disables all non-essential motion?”
Implementation guidance (library-agnostic)
For simple sites
- CSS transitions for small hovers/toggles.
- Use a single motion library (GSAP or Framer Motion) for complex sequences.
For product sites
- Create a motion token set:
- durations
- easing curves
- standard offsets (8/16/24px)
- stagger defaults
For hero moments
- Use timelines (or keyframes) with labeled beats.
- Lock camera/scene movement first, then layer text.
What to ask the user
- What’s the brand lane: Stripe (polished), Linear (minimal), Apple (cinematic), Vercel (developer/product)?
- What are the key moments? (hero, scroll story, hover cards, nav transitions)
- Any performance constraints? (mobile, low-end devices)
- Reduced motion requirements?
Output format (when asked to “add Stripe/Linear-style animation”)
Return:
- Motion goals (what we’re trying to communicate)
- Motion tokens (durations + easing + offsets)
- A choreography plan (timeline beats)
- Implementation notes (perf + reduced motion)
- A small code recipe (CSS or GSAP/Framer depending on stack)
1---2name: animation-systems3description: Use when designing or implementing product-grade web motion like Stripe, Linear, Apple, and Vercel. Covers motion principles, easing/duration defaults, choreography patterns, scroll/hover interactions, performance, accessibility (reduced motion), and implementation guidance.4metadata:5 source: https://skillmd.com/skills/mengto/animation-systems6---78# Animation Systems (Stripe × Linear × Apple × Vercel)910This skill helps you ship **tasteful, product-grade motion**.11Not “more animation.”12**Better animation**: clarity, hierarchy, feedback, and delight—without jank.1314---1516## The goals (why motion exists)17Use animation to:181) **Explain hierarchy** (what matters)192) **Confirm action** (feedback)203) **Guide attention** (where to look next)214) **Maintain continuity** (spatial relationships)225) **Add polish** (craft signals)2324If an animation doesn’t serve one of these, delete it.2526---2728## The Stripe/Linear/Apple/Vercel style (shared traits)2930### 1) Restraint31- Fewer animations, better chosen.32- One strong hero moment; the rest is supporting motion.3334### 2) Clear choreography35- Primary element moves first.36- Secondary elements follow with small stagger.37- Motion establishes a “reading order.”3839### 3) Physical but not cartoony40- Use easing that feels **human** (soft acceleration + gentle settle).41- Avoid bouncy defaults for serious product UI.4243### 4) Texture + depth (subtle)44- Small parallax, soft shadows, blur fades, light beams.45- Avoid heavy 3D unless it’s the hero.4647---4849## Motion primitives (build these first)50Think in primitives you can reuse everywhere.5152### A) Fade + rise (default entrance)53Use for: text blocks, cards, modals.54- Opacity: 0 → 155- Y: 12–24px → 056- Duration: 300–700ms depending on size5758### B) Scale + fade (micro emphasis)59Use for: popovers, toasts, selected states.60- Scale: 0.98 → 161- Opacity: 0 → 16263### C) Slide (navigation)64Use for: drawers, step transitions.65- Use transform translate; avoid animating layout.6667### D) Morph / shared element (high craft)68Use for: tab indicators, expanding cards.69- Requires consistent geometry + measured layout.7071---7273## Defaults (practical numbers)74Use these as a starting system.7576### Durations (rule of thumb)77- Micro (hover/press): **120–200ms**78- UI state change (toggle, select): **180–260ms**79- Small transitions (popover, toast): **220–320ms**80- Page section entrance: **400–800ms**81- Hero sequences: **800–1600ms** (with internal beats)8283### Easing (safe set)84Pick a small set and reuse.85- UI: **ease-out** with gentle settle86- Emphasis: slightly stronger ease87- Entering: ease-out88- Exiting: ease-in (faster)8990If implementing:91- Use your animation library’s “power2.out / expo.out” equivalents.92- Avoid elastic/bounce unless brand is playful.9394### Stagger95- 40–90ms per element (text lines/cards)96- Use smaller stagger on mobile9798---99100## Choreography patterns101102### 1) “Hero → supporting elements”103- Hero visual animates in first.104- Headline appears next.105- CTA appears last.106107### 2) “Section reveal on scroll”108- Trigger when section is ~20–30% visible.109- Animate once (don’t replay on tiny scroll).110111### 3) “Hover: lift + glow”112- Y: -2 to -6px113- Shadow: subtle increase114- Optional: border/gradient glow115116### 4) “Focus ring + micro shift”117- For form fields: focus ring + tiny scale/translate for responsiveness.118119---120121## Performance rules (non‑negotiable)122123### Animate the right properties124Prefer:125- `transform` (translate/scale/rotate)126- `opacity`127128Avoid (unless necessary):129- width/height/top/left130- expensive filters on large areas131132### Respect the GPU133- Clamp device pixel ratio in heavy canvases (1–2)134- Keep blur subtle and small135- Avoid many simultaneous animated shadows136137### Reduce reflows138- Don’t measure layout every frame.139- For scroll effects, use a library that batches reads/writes.140141---142143## Accessibility: Reduced Motion144Always support `prefers-reduced-motion`.145146Policy:147- Keep content visible.148- Replace motion with **instant state** + subtle opacity.149- Disable scroll-scrub/pin.150151Ask the user:152- “Do you want a reduced-motion mode that disables all non-essential motion?”153154---155156## Implementation guidance (library-agnostic)157158### For simple sites159- CSS transitions for small hovers/toggles.160- Use a single motion library (GSAP or Framer Motion) for complex sequences.161162### For product sites163- Create a motion token set:164 - durations165 - easing curves166 - standard offsets (8/16/24px)167 - stagger defaults168169### For hero moments170- Use timelines (or keyframes) with labeled beats.171- Lock camera/scene movement first, then layer text.172173---174175## What to ask the user176- What’s the brand lane: Stripe (polished), Linear (minimal), Apple (cinematic), Vercel (developer/product)?177- What are the key moments? (hero, scroll story, hover cards, nav transitions)178- Any performance constraints? (mobile, low-end devices)179- Reduced motion requirements?180181---182183## Output format (when asked to “add Stripe/Linear-style animation”)184Return:1851) Motion goals (what we’re trying to communicate)1862) Motion tokens (durations + easing + offsets)1873) A choreography plan (timeline beats)1884) Implementation notes (perf + reduced motion)1895) A small code recipe (CSS or GSAP/Framer depending on stack)