How the four values work
A cubic-bezier function defines two control points as x1, y1, x2, and y2. The x values represent time progression, while y values shape the rate and can create overshoot.
Create and compare a custom CSS cubic-bezier timing function. Drag the two control points or enter exact values, preview the motion at a chosen duration, and copy the easing code.
A cubic-bezier function defines two control points as x1, y1, x2, and y2. The x values represent time progression, while y values shape the rate and can create overshoot.
Yes. Y values outside the usual zero-to-one range can create overshoot or anticipation effects.
Yes. Use the numeric control-point fields instead of dragging.
No. Duration changes how long the preview runs, while the control points define the easing shape.
Click play to see animation:
Hover to see transition:
animation-timing-function: cubic-bezier(0.25, 0.10, 0.25, 1.00);transition: all 1s cubic-bezier(0.25, 0.10, 0.25, 1.00);@keyframes slide {
from { transform: translateX(0); }
to { transform: translateX(100px); }
}
.element {
animation: slide 1s cubic-bezier(0.25, 0.10, 0.25, 1.00);
}