Cubic Bezier Easing Editor
Drag the handles to shape a CSS easing curve, watch it move, and copy the cubic-bezier() value.
Presets
How to use the Cubic Bezier Editor
- Shape the curveDrag the pink and purple handles, type the four numbers, or start from a preset like ease-out or easeOutBack.
- Watch the motionPress Play to race your curve against linear motion.
- Copy the timing functionCopy the cubic-bezier() value for a CSS transition or animation.
Example
The keyword ease is the same as cubic-bezier(0.25, 0.1, 0.25, 1).
easeOutBack cubic-bezier(0.34, 1.56, 0.64, 1) overshoots the end a little, then settles, which feels springy.
Frequently asked questions
What do the four numbers mean?
They are the x and y positions of the two handles. The x values are time (0 to 1) and must stay in that range; the y values are progress and can go below 0 or above 1 to create a bounce-back effect.
Which easing should I use?
Ease-out (fast start, slow end) suits things entering the screen, ease-in suits things leaving, and ease-in-out suits things moving from one place to another.
Can I use this in JavaScript?
Yes. The Web Animations API (element.animate) accepts the same cubic-bezier() string as its easing option.