Menu

1 / 5

Why Your 300ms Cubic-Bezier Feels Dead (And What Springs Do Differently)

DEV Community: css·shinoj cm·2 days ago
#4MzaaUp0
#devtocss#devto#dev#spring#springs
Long article (1013 words) — no AI summary yet.
Reading 0:00
15s threshold

Every product has one. transition: all 300ms ease-in-out . It is the reason a lot of interfaces feel like they are made of cardboard.

This is not a taste argument. There is a mechanical reason a fixed-duration curve feels wrong for interaction, and a specific set of cases where it is still exactly right.

A curve is a script; a spring is a physics system

A cubic-bezier transition says: over exactly 300ms, move from A to B following this shape. It is a script with a fixed ending.

The problem appears when the user interrupts it. Click a toggle, then click it back at 150ms. What should happen?

With a fixed transition, the browser usually restarts the curve from wherever it is, with a full 300ms duration again. The object visibly hesitates. If you interrupt repeatedly, you get a stuttering object that is clearly not obeying anything.

A spring has no duration. It has a target and a state — position and velocity.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.