Skip to main content

CSS Easing Curve Editor – Visualise cubic-bezier

Edit CSS cubic-bezier easing curves online: drag the handles for a live animation preview, apply five built-in presets with one click. Done locally in your browser.

Runs on your device — nothing is uploaded

Bezier Curve Editor

P1 (0.25, 0.25) P2 (0.75, 0.75)

That ease in transition: all .3s ease is just a curve the browser picked for you. If you want your interactions to have character — a button that springs back, a menu that slides out with a hint of lag, a drawer that closes crisply — you have to tune cubic-bezier yourself. And its biggest turn-off is this: four numbers on paper mean nothing; you have to see the curve and watch the ball run.

This tool lays the curve out flat: drag the two handles on the curve and the ball animation previews live in sync; once it feels right, copy the cubic-bezier(...) code with one click. Everything happens in the browser.

How to use it

Pick a starting point

Choose any of the five built-in presets (values in the table below), or grab the handles directly and start from the default curve.

Drag the handles to shape the curve

The curve's two control points are the four numbers of cubic-bezier. As you drag, the curve shape, the ball animation and the output code all change together — watch the animation first, then copy the numbers, not the other way round.

Copy the code

The output box gives cubic-bezier(x1, y1, x2, y2) rounded to three decimals; paste it into transition-timing-function or animation-timing-function in your CSS.

What the four numbers actually are

The four numbers in cubic-bezier(0.25, 0.1, 0.25, 1) are the coordinates of the curve's two control points: P1 = (x1, y1), P2 = (x2, y2). The curve starts at (0,0) and ends at (1,1) — the horizontal axis is time progress, the vertical axis is animation progress.

Preset Four values Curve personality
ease 0.25, 0.1, 0.25, 1.0 Browser default: brisk start, smooth finish
ease-in 0.42, 0.0, 1.0, 1.0 Accelerates throughout — a regular in exit animations
ease-out 0.0, 0.0, 0.58, 1.0 Fast out, gentle finish — the entrance classic
ease-in-out 0.42, 0.0, 0.58, 1.0 Easy at both ends, quick in the middle — no dizziness for large displacements
linear 0.0, 0.0, 1.0, 1.0 Constant speed — progress bars, steady scrolls

CSS constrains the two axes asymmetrically: x1 and x2 are clamped to 0–1 (time cannot run backwards), but y1 and y2 may exceed the range — the y1 of cubic-bezier(0.34, 1.56, 0.64, 1) goes past 1, so the curve overshoots the destination and springs back; that is exactly where the popular "overshoot" effect comes from.

The curve's shape decides the feel, the duration decides the rhythm: the same springy curve feels snappy at 200ms and sluggish at 800ms. Get the shape right in the preview first, then fine-tune duration in the real page — the ball's duration in the preview does not have to match the real scene.

Frequently asked questions

Can cubic-bezier do a "multi-bounce" effect?

No. A single cubic-bezier can overshoot the destination at most once (y beyond the range produces one overshoot). Multiple bounces or a physical falling feel need @keyframes hand-drawing several keyframes, or the Web Animations API or a spring-model library — the curve is just "one smooth velocity profile".

Why did my curve go vertical?

The control points' x is limited to 0–1, but y can still roam freely while dragging — a "vertical" curve usually means y was dragged far, making the animation progress steep against time. That is legal (overshoot depends on it), but an overly steep curve makes the animation finish in an instant, with only the rebound left visible.

Smooth in the preview, janky on the real page?

The curve only defines "how progress is interpolated", not "what gets painted each frame". Jank usually comes from the animated property itself: width/top trigger layout, transform/opacity stay on the compositor. Move the animation to compositor-friendly properties like transform: translateX(), and the curve's beauty actually lands.

How does the `linear()` function relate?

The newer CSS linear() approximates arbitrary easing with piecewise segments (it can express bounces) — a different route from cubic-bezier. This tool outputs the classic cubic-bezier — best compatibility, and the one used in most design system tokens.

What needs changing after copying the code?

Nothing. The output is a valid cubic-bezier() value, ready for the timing-function slot of transition or animation. Note that it is only the easing — transition still needs the property name and duration (e.g. transition: transform .3s cubic-bezier(...)).

Will any data be uploaded?

No. Curve computation, animation preview and code generation all happen on the page — zero network requests.