Cubic-bezier generator and easing visualizer
Drag the two handles to shape an easing curve and watch it move live: sliding, scaling, fading or turning, next to a linear one. Copy it as cubic-bezier() for CSS, as a Tailwind class or as a JavaScript array.
How to make a cubic-bezier easing
- Start from a preset, such as ease-out, or pick a named easing like easeOutQuart from More easings.
- Drag the two handles, or type four numbers. The curve shows progress (up) over time (right); a steep start feels fast, a flat end feels soft.
- Watch it live: the shape slides, scales, fades or turns with your curve, next to a linear one. The dot on the curve follows the same moment.
- Copy the value for CSS, as a Tailwind class or as an array for JavaScript libraries such as Framer Motion and GSAP.
Reading an easing curve
The two handles are the four numbers of cubic-bezier(x1, y1, x2, y2). The x values are time and stay between 0 and 1; the y values are progress and can go below 0 or above 1 to make the motion pull back or overshoot and settle, which is how springy buttons and menus are made.
- Ease out starts fast and slows down: best for things that appear, such as menus, toasts and modals.
- Ease in starts slow and speeds up: best for things that leave the screen.
- Ease in-out is slow at both ends: best for things that move from one place to another.
- Back easings go slightly past the end and come back: a playful bounce for small elements.
Cubic-bezier values of common easings
The standard CSS keywords and the named easings most motion libraries use, with their exact cubic-bezier() values. Click Try it to load one into the editor.
| Easing | CSS value | |
|---|---|---|
| ease | cubic-bezier(0.25, 0.1, 0.25, 1) | Try it |
| ease-in | cubic-bezier(0.42, 0, 1, 1) | Try it |
| ease-out | cubic-bezier(0, 0, 0.58, 1) | Try it |
| ease-in-out | cubic-bezier(0.42, 0, 0.58, 1) | Try it |
| easeInSine | cubic-bezier(0.12, 0, 0.39, 0) | Try it |
| easeOutSine | cubic-bezier(0.61, 1, 0.88, 1) | Try it |
| easeInOutSine | cubic-bezier(0.37, 0, 0.63, 1) | Try it |
| easeInQuad | cubic-bezier(0.11, 0, 0.5, 0) | Try it |
| easeOutQuad | cubic-bezier(0.5, 1, 0.89, 1) | Try it |
| easeInOutQuad | cubic-bezier(0.45, 0, 0.55, 1) | Try it |
| easeInCubic | cubic-bezier(0.32, 0, 0.67, 0) | Try it |
| easeOutCubic | cubic-bezier(0.33, 1, 0.68, 1) | Try it |
| easeInOutCubic | cubic-bezier(0.65, 0, 0.35, 1) | Try it |
| easeInQuart | cubic-bezier(0.5, 0, 0.75, 0) | Try it |
| easeOutQuart | cubic-bezier(0.25, 1, 0.5, 1) | Try it |
| easeInOutQuart | cubic-bezier(0.76, 0, 0.24, 1) | Try it |
| easeInQuint | cubic-bezier(0.64, 0, 0.78, 0) | Try it |
| easeOutQuint | cubic-bezier(0.22, 1, 0.36, 1) | Try it |
| easeInOutQuint | cubic-bezier(0.83, 0, 0.17, 1) | Try it |
| easeInExpo | cubic-bezier(0.7, 0, 0.84, 0) | Try it |
| easeOutExpo | cubic-bezier(0.16, 1, 0.3, 1) | Try it |
| easeInOutExpo | cubic-bezier(0.87, 0, 0.13, 1) | Try it |
| easeInCirc | cubic-bezier(0.55, 0, 1, 0.45) | Try it |
| easeOutCirc | cubic-bezier(0, 0.55, 0.45, 1) | Try it |
| easeInOutCirc | cubic-bezier(0.85, 0, 0.15, 1) | Try it |
| easeInBack | cubic-bezier(0.36, 0, 0.66, -0.56) | Try it |
| easeOutBack | cubic-bezier(0.34, 1.56, 0.64, 1) | Try it |
| easeInOutBack | cubic-bezier(0.68, -0.6, 0.32, 1.6) | Try it |
How long an animation should take
Small interface motion feels right between 150 and 300 milliseconds; larger moves across the screen between 300 and 500. Longer than that and people start waiting for the interface. Use the duration slider to feel the difference with your curve.
Copying the easing of a real website
To use the exact motion of an animation you like, select it on the page with Design Toolkit and open its Animations section. It shows the duration, delay, easing curve and keyframes, and copies them for an AI assistant.
Copy the animation of any website. Design Toolkit shows the duration, easing curve and keyframes of any animation on the live page and copies them for an AI assistant. How it works
Questions
What is cubic-bezier in CSS?
A timing function that sets how an animation or transition speeds up and slows down, written as cubic-bezier(x1, y1, x2, y2).
What is the cubic-bezier of easeOutQuart?
cubic-bezier(0.25, 1, 0.5, 1). It starts fast and settles softly, a good default for things that appear.
What is the cubic-bezier of easeInOutCubic?
cubic-bezier(0.65, 0, 0.35, 1). It is slow at both ends and fast in the middle.
How do I use a custom easing in Tailwind?
Use an arbitrary value such as ease-[cubic-bezier(0.22,1,0.36,1)] on the element, together with transition and duration classes.
How do I use a cubic-bezier in Framer Motion or GSAP?
Framer Motion takes the four numbers as an array, for example ease: [0.22, 1, 0.36, 1]. In GSAP, use the CustomEase plugin or the same values with the CSS string.
Can the y values be negative or above 1?
Yes. They make the motion pull back or go past its end and come back. The x values must stay between 0 and 1.