CSS cubic-bezier() Easing Generator

Choose an easing preset or enter control points and get a cubic-bezier value with ready CSS for transitions, animations, Tailwind and the Web Animations API, plus a curve drawing and a looping preview.

Use the tool

Why this tool exists

The default ease and linear timings make an interface feel generic, and a custom curve is what gives a button press or a drawer slide character. Writing four numbers blind is hard, though, so people copy values from a list and hope.

This tool lets you start from the standard CSS keywords or the popular easings.net set, adjust the control points and watch the curve and a moving preview before you copy anything. It also produces a sampled linear() version for modern browsers, which can describe overshoot and bounce that a single bezier cannot. The x values must stay between 0 and 1, while the y values may go beyond to overshoot. Everything is calculated in your browser.

How to use it

  1. Pick a preset, or choose custom and enter x1, y1, x2 and y2.
  2. Set the duration in milliseconds for the preview.
  3. Watch the curve and the looping animation, and adjust the points until the motion feels right.
  4. Copy the CSS for transition, animation, Tailwind or the Web Animations API.

Frequently asked questions

Why must x be between 0 and 1?

CSS requires the x coordinates of a cubic-bezier to stay in that range, because time cannot run backwards. The y values are free, so values below 0 or above 1 give anticipation and overshoot.

What is the linear() output for?

The linear() easing function approximates a curve with many straight segments. Modern browsers support it, and it can represent springs and bounces. It is longer than cubic-bezier, so use it only when you need that.

Which preset is closest to a natural feel?

Ease-out curves, such as easeOutCubic or easeOutBack, feel responsive for things appearing on screen, since they start fast and settle. Try a few in the preview with your real duration.