Cubic Bezier Playground
Browser-only No sign-up CSS easing

Cubic Bezier Playground

Shape a real easing curve, feel it on a live element, and copy production-ready transition-timing-function and animation-timing-function values. Everything runs locally in your browser.

current cubic-bezier(0.4, 0, 0.2, 1)

The playground

Dial in your easing

Drag either indigo control point, choose a preset, or fine-tune exact values.

Easing curve
P1 0.40, 0.00 · P2 0.20, 1.00
Cubic bezier easing curve editor A graph from progress zero to one with two draggable control points. PROGRESS TIME → 1 0 P1 P2
Fine-tune coordinates exact values
Dragging a point switches this back to custom.
50–5,000 ms. Used in the preview and snippet.
Choose the property you want to feel in motion.

Live preview

Feel the timing

Ready
transform · 400 ms
CSS output
cubic-bezier(0.4, 0, 0.2, 1)
/* Easing */
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);

/* Transition */
.my-element {
  transition-property: transform;
  transition-duration: 400ms;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Animation */
@keyframes my-animation {
  from { transform: translateX(0) scale(0.75); }
  to   { transform: translateX(200px) scale(1); }
}
.my-animated {
  animation: my-animation 400ms cubic-bezier(0.4, 0, 0.2, 1) both;
}

The curve stays in your browser. No network requests, no stored inputs, no account.

Built for real CSS work

From feel to stylesheet

The graph mirrors the browser's cubic-bezier math: x is time, y is progress, and overshoot is allowed.

01

Drag with precision

Move both control points directly on the curve, or type exact x and y values when you need repeatable tokens.

02

Preview the property

Test the same curve on transform, opacity, or width with your chosen duration before copying anything.

03

Copy both declarations

Get explicit transition and animation timing-function declarations, plus usable transition and keyframe examples.

How to use it

Step 1

Pick a starting point

Choose a familiar CSS preset or leave it on custom and grab a handle.

Step 2

Shape and preview

Drag P1 or P2, set the duration, and press Preview to feel the easing on a real element.

Step 3

Copy the exact CSS

Copy the cubic-bezier value on its own or take the full transition and animation snippet.

Cubic-bezier FAQ

What do the four numbers mean?

They are the x and y coordinates of the two control points: cubic-bezier(x1, y1, x2, y2). X controls timing, and Y controls progress.

Why can the y values overshoot?

CSS requires x values between 0 and 1, but y can go outside that range. Values above 1 create the overshoot that makes spring and bounce-like motion possible.

Does the easing work in every modern browser?

Yes. The generated values use standard CSS cubic-bezier syntax supported by current browsers for transitions and keyframe animations.

Is anything uploaded or saved?

No. The curve, timing, and CSS generation all run in this page. There are no API calls, no analytics hooks, and no stored preferences.

Latest updates

More free tools

Step-by-step guides in our blog & guides.

Image To Pdf Converter Image to ASCII Art Video Thumbnail Generator Online Free Video First Last Frame Extractor Free CV / Resume Builder (PDF Download) Password Generator House Floor Plan Generator Free Restaurant Food Cost Rate Calculator Live Currency Converter Free Meta Description Generator