Two cloths race along the rails of Bu Lastri’s frame: Mbak Wulan on a keyword, Rara on a timing function you type or drag, and the dots on the graph are the…
Why it matters
Every transition and animation has a timing function, and it is what makes motion feel stiff or alive. Knowing that the curve’s slope = speed, a keyword = one particular curve, and y may leave 0–1 (x may not) lets you tune motion instead of picking from a list.
The key idea
The curve maps time to progress, and its slope is speed
Common mistakes
The control point stops, it will not go past the right edge The x axis is time, so it may only be 0 to 1. A value outside that makes cubic-bezier() invalid and the browser drops the whole declaration. Only y may leave the range.
An animation with linear feels stiff, like a robot A straight line = one speed from start to end, and real things do not move like that. For elements coming into view use ease-out or a curve of your own; linear suits a spinner’s turn or a progress bar.
Needing a bounce, but no keyword can do it Built-in keywords never leave 0–1. One cubic-bezier() with a y above 1 can pass once and come back; bouncing several times needs linear() with many points, or keyframes.
Try it in this playground
Drag one of the control points The curve, the cubic-bezier() in the field and the browser’s line change with it. The arrow keys work too once a point is picked.
Pick "Overshoot", then pull Its control point’s y is above 1, so Rara’s cloth passes the post and comes back: the graph’s dots rise above the 1 line.
Pull with linear, then with ease-out linear: the dots are evenly spaced (one speed). ease-out: wide apart at first, close at the end (a soft landing).
Type an x outside 0–1, say cubic-bezier(0.5, 0, 1.5, 1) The browser refuses it, and Rara’s whole transition declaration goes with it: pull, and the cloth jumps.