Skip to content
📈

Cubic Bezier Easing Generator

Draw an easing curve, see how fast it moves, and copy the cubic-bezier() value or the matching keyframes.

Runs in your browser

Updated

0.42
0.00
0.58
1.00

Drag inside the grid to reshape the curve. The dashed line is a straight ease; anything to its left is faster, anything below zero overshoots.

Playback

Four numbers, one curve

Two control points define the shape and four sliders set them. X1 and X2 run 0 to 1 in steps of 0.01, matching the CSS specification, while Y1 and Y2 run -1 to 2, which is what allows overshoot and wind-up. The value box joins the four after rounding each to two decimals, so the string is exactly what you can paste into a stylesheet.

On the 520 by 320 canvas the curve is plotted as 201 sampled points, with the vertical window fixed from -0.5 to 1.5 so an overshooting curve stays in frame, and a dashed diagonal marking the linear reference.

A worked example

The page opens on ease-in-out, 0.42, 0, 0.58, 1, and the CSS field reads cubic-bezier(0.42, 0, 0.58, 1). Beside it, five stops at 0, 25, 50, 75 and 100 percent translate to translateX(0%), translateX(18.45%), translateX(50%), translateX(81.55%) and translateX(100%). Ten presets ship with it: linear, ease, ease in, ease out, ease in out, back out, anticipate, expo out, circ out and bounce at 0.68, -0.55, 0.27, 1.55.

Dragging, and how playback is timed

Pressing inside the grid moves whichever handle is nearer in straight-line distance, snaps to 0.01 and resets the preset selector to Custom. Playback differs from the export in one important way: the loop measures elapsed time against a 1400 ms duration and solves for the parameter whose x matches that progress, using up to eight Newton steps at 0.0001 tolerance then up to thirty bisection steps. The exported keyframes skip that solve and read y at the raw parameter, which is why the 25 percent stop says 18.45 percent while the ball is genuinely near 12.92 percent a quarter of the way through.

Where it stops

  • The keyframe export is approximate, so a copied five-stop animation is not identical to the previewed curve.
  • Only five stops, and only for transform: translateX.
  • Bounce and anticipate are single-cubic approximations; a real bounce needs several steps.
  • Dragging cannot place a handle outside x 0 to 1, so a curve that reverses in time cannot be built.

Questions people ask

Can a cubic-bezier easing exceed 100 percent?

In the y direction yes, which is what makes back-out overshoot before settling. The y sliders deliberately allow -1 to 2.

Where does the curve go next?

Apply it to a shift built in css-transform-generator, and finish the card it moves with box-shadow-generator.