Cubic Bezier Curve Generator

Design a CSS easing function by dragging two control points, preview it, and copy the transition or animation code.

time →progress →

Purple: your curve. Grey: linear, for comparison.


    

How to make a custom easing curve

  1. Drag the pink and blue handles, or type the four numbers. The pink handle is the first control point (x1, y1) and shapes the start of the motion; the blue one (x2, y2) shapes the end.
  2. Release the handle or press Play to watch the purple ball follow your curve next to a grey ball moving linearly.
  3. Copy the CSS. The same cubic-bezier() value works in transition, animation-timing-function and the Web Animations API.

Reading the graph

The horizontal axis is time and the vertical axis is progress, both from 0 to 1. A steep section means fast movement and a flat section means slow movement. The curve always starts at (0, 0) and ends at (1, 1); only the two control points in between are yours to set. X values must stay between 0 and 1, but Y values may go outside that range: a y above 1 makes the animation overshoot its target and come back (the "back" presets), and a y below 0 makes it pull back first, like an anticipation in cartoon animation.

Built-in keywords and popular curves

Namecubic-bezier()Feels like
ease (CSS default)0.25, 0.1, 0.25, 1Quick start, gentle stop
ease-in0.42, 0, 1, 1Slow start; for elements leaving the screen
ease-out0, 0, 0.58, 1Slow finish; for elements entering
ease-in-out0.42, 0, 0.58, 1Symmetric; for elements moving across the screen
easeOutQuint0.22, 1, 0.36, 1Snappy, modern UI motion
easeOutBack0.34, 1.56, 0.64, 1Slight overshoot; playful pop-ins
Material standard0.2, 0, 0, 1Google Material 3 standard easing

Motion design tips

You can share a curve with a link like ?v=0.34,1.56,0.64,1.

FAQ

Why can't I drag a handle beyond the left or right edge?

The CSS specification requires x1 and x2 to be between 0 and 1, because time cannot run backwards. Browsers ignore a cubic-bezier() with x values outside that range.

Can a cubic-bezier make a bounce or spring?

It can overshoot once (y above 1), but a real bounce or spring with several oscillations needs keyframes or the CSS linear() easing function with many points.

How do I use it in Tailwind?

Use an arbitrary value: ease-[cubic-bezier(0.34,1.56,0.64,1)], or add it to transitionTimingFunction in your Tailwind config.