Slow spring
Physics instead of a fixed curve: stiffness pulls toward the target, damping bleeds energy off, mass adds inertia. Duration falls out of the physics. A spring has no fixed ease direction: it leaves at the speed the physics gives it and settles with as much bounce as its damping allows.
Code
No cubic bezier can draw this curve. CSS linear() follows it with 21 points; the other tabs use each platform's native equivalent.
/* Exact curve (all modern browsers): */
transition: transform 1225ms linear(0, 0.006 1.3%, 0.023 2.7%, 0.053 4.2%, 0.09 5.7%, 0.182 8.7%, 0.397 15%, 0.5 18.2%, 0.597 21.5%, 0.678 24.7%, 0.746 27.8%, 0.806 31.2%, 0.855 34.5%, 0.897 38.2%, 0.931 42.2%, 0.958 46.7%, 0.978 51.7%, 0.991 57.3%, 0.999 63.5%, 1.002 71.2%, 1);Exact CSS
linear() draws any curve with straight segments. This one uses 21 points chosen so the motion never strays more than 0.25 % from the real springSlow; every current browser supports it.
linear(0, 0.006 1.3%, 0.023 2.7%, 0.053 4.2%, 0.09 5.7%, 0.182 8.7%, 0.397 15%, 0.5 18.2%, 0.597 21.5%, 0.678 24.7%, 0.746 27.8%, 0.806 31.2%, 0.855 34.5%, 0.897 38.2%, 0.931 42.2%, 0.958 46.7%, 0.978 51.7%, 0.991 57.3%, 0.999 63.5%, 1.002 71.2%, 1)
Questions
How do I write this spring in CSS?
CSS has no spring timing function, so use linear() with the points on this page (21 points, within 0.25 % of the physics). Set the transition to about 1.22 s, the time this spring takes to settle.
When should I use springSlow?
Interactive and responsive motion — drags, toggles, sheets — and any move that should feel alive. Interruptible in real UI. A spring has no fixed ease direction: it leaves at the speed the physics gives it and settles with as much bounce as its damping allows.
How much does springSlow overshoot?
It passes the target by 0.3 % of the distance before settling — about 1 px on a 200 px move.
Other springs
Animate with springSlow in Kineform
Pick it from any key, text animator or camera move, or bend it in the graph editor — on a real-time engine with 3D, light, type and video.