CSS Cubic Bezier Generator
Build a CSS cubic-bezier easing curve from four numbers or a preset, preview it against linear motion and copy the transition-timing-function.
How to make a CSS easing curve
Pick a start
Choose a preset such as ease-out-back or enter your own four numbers.
Watch the preview
A dot moves with your curve next to a linear one, so you can feel the difference.
Copy or download
Paste the cubic-bezier value into your transition.
Worked example
This is what CSS Cubic Bezier Generator gives for its own sample values. Open the tool above and change anything to try your own.
- Start from
- My own curve
- x1 (0 to 1)
- 0.25
- y1 (-2 to 3)
- 0.1
- x2 (0 to 1)
- 0.25
- y2 (-2 to 3)
- 1
- Preview duration (seconds)
- 1.6
CSS
transition-timing-function: cubic-bezier(0.25, 0.1, 0.25, 1); /* or in a shorthand: transition: transform 300ms cubic-bezier(0.25, 0.1, 0.25, 1); */
About CSS Cubic Bezier Generator
Build the timing curve for a CSS transition or animation. A cubic-bezier is two control points that shape how fast the motion starts, speeds up and slows down. Values of y beyond 0 and 1 make the motion overshoot and spring back.
FAQs
What do the four numbers mean?
They are the x and y of two control points. The curve starts at 0,0 and ends at 1,1, and the points pull it into shape.
Why must x stay between 0 and 1?
Time only moves forward, so CSS rejects x values outside that range. Only y may go beyond it.
Where do I use it?
In transition-timing-function, animation-timing-function or the transition shorthand.