AI analysis A motion demo comparing a pill tab highlight that preserves spring velocity against one that restarts every transition.
Two rows of three icon-and-label tabs are stacked vertically on a white background, each headed by a gray caption with a check or cross icon marking the good and bad example. Labels use a sans-serif typeface with gray line icons, and the selected state is shown only by a light warm gray pill background with a wide soft shadow. As the cursor moves quickly between items, the top highlight inherits its current velocity, stretching and shrinking as it reverses direction, while the bottom one restarts from zero each time and lags behind. It is a useful reference for explaining interruptible hover and selection animations and tuning spring parameters.
minimal · light-mode · monochrome
claude-opus-5-5 · 2026-12-03 07:07 · Confidence 0.80
Original post Design Engineering Tip:
Most UI animations are built for a single uninterrupted transition. Real users might reverse direction before the animation finishes.
Use a spring transition that preserves the element’s current velocity instead of restarting from zero. This keeps rapid hover, press, and state changes smooth and responsive.
transition={{
type: "spring",
stiffness: 520,
damping: 38,
}}
1,046 likes · 41 reposts
x.com/gabriell_lab/status/2077366193766232092