Pave motion audit
Every place in the front end where something moves, read and scored against one motion language.
In short
- About 750 transitions and animations across about 350 stylesheets became 47 proposed fixes.
- The same spinner ran at four different speeds, because its keyframes were copied from file to file.
- The browser default
easespeeds up before it slows down, so entrances feel late. - The marketing hero moved all the time; the product grid moves about a quarter of the time.
How it was read
Every stylesheet was read, not sampled.
Each place where something moves was scored on four things: duration, easing, the property animated and what happens under reduced motion. Findings that broke the motion language became proposed fixes.
┌─────────────────┐ ┌──────────────────┐ ┌──────────────────┐
│ 350 stylesheets │ ──► │ 8 auditor shards │ ──► │ 750 motion sites │
└─────────────────┘ └──────────────────┘ └──────────────────┘
│
▼
┌──────────┐
│ 47 fixes │
└──────────┘One spinner, four speeds
A slow spinner makes the app feel slow at the same load time.
The keyframes had been copied from file to file, and each copy drifted. The fix was one shared keyframe at 0.8 seconds.
One rotation, measured in each copy of the keyframes.
copy 1 ██████████████████████████████ 1.2 s
copy 2 █████████████████████████ 1.0 s
copy 3 ████████████████████ 0.8 s
copy 4 ███████████████ 0.6 sWhat a finding looks like
Each finding shows how long the motion takes and how its speed changes, today against proposed.
The duration ruler is 20 cells of 25 ms on a fixed 500 ms scale, so every finding in the report compares with every other one. The speed glyph shows how much progress happens in each eighth of the time.
duration easing speed
today ▕████████············▏ 200ms ease ▅█▇▅▄▃▂▁
proposed ▕██████··············▏ 150ms reveal-ease █▆▅▄▃▂▁▁
0·········250········500msSpeed over time for each easing in the audit.
token speed curve use for
linear ████████ linear progress only
ease ▅█▇▅▄▃▂▁ ease the browser default
ease-out █▇▇▆▅▄▃▂ ease-out
decelerate █▅▄▃▂▂▂▁ cubic-bezier(0, 0, 0.2, 1) most UI
reveal █▆▅▄▃▂▁▁ cubic-bezier(0.33, 1, 0.68, 1) entrances
spring ██▅▁▁▁▁▁↺ cubic-bezier(0.44, 1.3, 0.15, 1) overshoots, settlesOverlaps nobody saw in review
Two animations on one element overlapped by 40 ms, and a pulse never stopped.
.toast slide-in ██████████······························ 0ms–240ms
.dot pulse ████████████████████████████████████████→ 0ms, repeats
.icon pop ·····██████████························· 120ms–370ms
.toast fade ········██████·························· 200ms–360ms
0ms 500ms 1sHanding off the hero
The marketing hero drifted all the time; the product grid mostly holds still.
Both versions were recorded for 60 seconds at the same size, and every line position was logged on every frame. In the product, the vertical lines moved in 17 separate pushes.
The marketing hero drifted all the time; the product grid mostly holds still.
MEASURE HERO CUT PRODUCT
vertical lines moving ██████████ 100% ██░░░░░░░░ 23%
row lines moving ░░░░░░░░░░ 0% █░░░░░░░░░ 11%
a drawing's build ███░░░░░░░ 2.7 s ████████░░ 7.7 s
a drawing's exit █░░░░░░░░░ 0.8 s █████░░░░░ 4.6 sWhat it cost to get right
The glyph code had two bugs that reached the published audit.
25 of the 47 findings showed the wrong easing name next to a correct glyph: the parser took the first CSS variable it found, which was a speed multiplier. And a value of 57 out of 100 drew one cell short, because a rounding remainder of 8/8 had no glyph. Both are covered by tests now.