CSS Cubic Bezier Generator

Create and compare a custom CSS cubic-bezier timing function. Drag the two control points or enter exact values, preview the motion at a chosen duration, and copy the easing code.

Features

Interactive curve editorDrag-and-drop control pointsReal-time animation preview12 preset easing functionsCompare mode with presetsCSS code generation

How to use the CSS Cubic Bezier Generator

  1. 1Choose a preset or start from the default curve.
  2. 2Drag the P1 and P2 control points or enter their numeric values.
  3. 3Set an animation duration and compare the motion preview.
  4. 4Copy the cubic-bezier function or its CSS declaration.

Common uses

  • Tune interface transitions and micro-interactions.
  • Match an animation to an existing easing curve.
  • Compare custom motion against common easing presets.

How the four values work

A cubic-bezier function defines two control points as x1, y1, x2, and y2. The x values represent time progression, while y values shape the rate and can create overshoot.

Frequently asked questions

Can a curve overshoot?

Yes. Y values outside the usual zero-to-one range can create overshoot or anticipation effects.

Can I enter exact values?

Yes. Use the numeric control-point fields instead of dragging.

Does the duration change the curve?

No. Duration changes how long the preview runs, while the control points define the easing shape.

Related Design Tools Tools

CSS Cubic Bezier Easing Generator