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.
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.
Fine-tune coordinates exact values close
Live preview
Feel the timing
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.
Drag with precision
Move both control points directly on the curve, or type exact x and y values when you need repeatable tokens.
Preview the property
Test the same curve on transform, opacity, or width with your chosen duration before copying anything.
Copy both declarations
Get explicit transition and animation timing-function declarations, plus usable transition and keyframe examples.
How to use it
Pick a starting point
Choose a familiar CSS preset or leave it on custom and grab a handle.
Shape and preview
Drag P1 or P2, set the duration, and press Preview to feel the easing on a real element.
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.