CSS cubic-bezier easing builder
Drag the four cubic-bezier control points, preview the easing live, pick from 13 CSS keyword, Material and iOS presets, then copy complete transition-timing-function and @keyframes CSS.
Runs in your browserEvery computation happens in your browser — your data never leaves this device.
Control points
x must stay within 0–1 as the CSS spec requires; y may exceed 0–1 for bounce and overshoot. Dragging on the canvas covers y from -1 to 2.
Animation preview
The block travels back and forth with the current curve; one pass takes exactly the duration used in the CSS.
Generated CSS
Curve, duration and @keyframes name all come from the parameters above and are ready to paste.
/* transition · cubic-bezier(0.25, 0.1, 0.25, 1) */
.transition {
transition-property: transform, opacity;
transition-duration: 300ms;
transition-timing-function: cubic-bezier(0.25, 0.1, 0.25, 1);
}
/* @keyframes bezier-demo · cubic-bezier(0.25, 0.1, 0.25, 1) */
@keyframes bezier-demo {
from { transform: translateX(0); }
to { transform: translateX(240px); }
}
.animation {
animation-name: bezier-demo;
animation-duration: 300ms;
animation-timing-function: cubic-bezier(0.25, 0.1, 0.25, 1);
animation-iteration-count: infinite;
animation-direction: alternate;
}What this tool does
- Replace CSS keywords with a custom easing: drag the control points, watch the preview, copy transition-timing-function
- Build bounce and overshoot entrances: @keyframes plus animation-timing-function, with the duration set on the page
- Match a design spec: start from a CSS keyword, Material or iOS preset and fine-tune the control points
Example
Input
0.25, 0.1, 0.25, 1 (duration 300ms, output: transition rule)
Output
/* transition · cubic-bezier(0.25, 0.1, 0.25, 1) */
.transition {
transition-property: transform, opacity;
transition-duration: 300ms;
transition-timing-function: cubic-bezier(0.25, 0.1, 0.25, 1);
}Curve, duration and @keyframes name in the output all come from the parameters on the page; nothing is hard-coded.
Frequently asked questions
Can x go outside 0–1? What about y?
x cannot. The CSS spec requires x1 and x2 to stay within 0–1; anything else reports invalid-x-range and stops the output. y may exceed 0–1 for bounce and overshoot (easeOutBack uses y1 = 1.56 for example) and is capped at ±10 here. Dragging on the canvas covers y from -1 to 2; type larger values into the numeric fields.
Is the generated CSS ready to paste?
Yes. Both the transition and the animation block are complete rules, and the @keyframes name is fixed to bezier-demo as a sample name you can rename. The preview animates margin-left, so switch transition-property to the property you actually animate.
Where do the presets come from and how many are there?
There are 13, all from public definitions: the control points equivalent to the CSS Easing Functions keywords linear, ease, ease-in, ease-out and ease-in-out; Material Design standard, decelerate, accelerate and emphasized; UIKit easeInOut; and the widely used easeOutQuint, easeInOutQuad and easeOutBack from easings.net. No invented values, and no iOS spring curve because a spring is not a cubic-bezier.
How is this different from the cubic-bezier curve generator?
This tool focuses on complete transition-timing-function and @keyframes CSS, an adjustable duration and an animation preview; the other one focuses on the curve itself and CSS keyword detection. They overlap, so either works.
Can I change the number of decimal places?
The UI always keeps 2 decimals, so dragging to 0.333 prints 0.33. The pure function buildBezierCss accepts a precision option (0–4) if you need more.
Keywords:cubic-beziertransition-timing-functioneasingcss-bezier