How to use CSS Cubic Bezier Generator
Design a cubic Bézier timing function for a CSS transition. Preview the movement and copy the generated timing declaration.
- Set X1, Y1, X2 and Y2, generate and watch the easing preview.
- Test the timing on the actual property and duration you will animate.
- Select Generate and review the result.
Example use
Make a menu ease out so it moves quickly at first and settles gently at the final position.
Output and compatibility
The x controls are constrained to the timing interval. Y controls can produce overshoot when the animated property permits it. Duration and animated property are separate CSS choices.
Troubleshooting
If a curve feels too abrupt, compare a smaller overshoot, adjust both control points or reduce the movement distance.
Use CSS Transform Generator to create a transform with which to test the curve.
Frequently asked questions
Does this set animation duration?
The result is a timing function. Set duration separately.
Can I use it on both transitions and animations?
Use the generated cubic-bezier value on the corresponding timing property.