Skip to content
English
Motion feels stiff32 / 71

Move between values

What goes wrong

When the data changes, bars drop to zero and grow again, so it looks as if everything reset instead of changed.

The fix

Animate every mark from its old value straight to the new one, numbers included.

Tell your AI

When chart data changes, move each bar with a transform from the old value to the new one over var(--ds-duration-reveal) (900ms) with var(--ds-ease-reveal), and count the figures from the old value, never from zero.

  • --ds-duration-reveal900ms
  • --ds-ease-reveal
Why AI-generated UIs all look the same: 12 rules that fix it

Running km per day

41.0km+8.6 vs last week
Last weekdrops to 0, then regrows