Cubic bezier generator

A cubic-bezier() easing curve controls how an animation's speed changes over time, using two control points between fixed start and end points.

How to use the easing curve editor

  1. Pick a preset or drag the two points.
  2. Use arrow keys on a focused point for fine adjustment.
  3. Set a duration, play the preview and copy the CSS.

Choosing easing for interfaces

Elements entering usually decelerate, elements leaving accelerate, and movement across the screen eases both ways. Values of y above 1 overshoot, which feels springy. Honor the reduced motion preference.

Frequently asked questions

What are the four numbers?

x1, y1, x2 and y2, the coordinates of the two control points.

Can x go below 0 or above 1?

No. CSS requires both x values to be between 0 and 1.

How long should UI animations be?

Often 150 to 500 milliseconds, longer for larger movements.

Related tools