Easing is what makes motion feel natural. Real objects speed up and slow down; nothing in the world moves at a perfectly constant speed. CSS lets you describe that change with a cubic Bézier curve, but four bare numbers don’t tell you much on their own. Here you can shape the curve directly and watch the result.
Reading the graph
The horizontal axis is time, from start to finish. The vertical axis is how far the animation has got. A straight diagonal line is linear. A curve that rises steeply at first is fast at the start and slow at the end (ease-out). A curve that dips below zero pulls back before moving, and one that rises above the top overshoots before settling.
Under the graph, the tool tells you how far the animation is halfway through the time. For ease-out it is around 68%, which is why it feels quick to respond.
Common choices
- Menus, toasts and modals appearing:
ease-outorease-out-expo. Fast arrival, soft landing. - Elements leaving:
ease-in. They gather speed as they go. - Moving between two positions:
ease-in-out. - Playful buttons or cards:
ease-out-backgives a small, friendly overshoot.
Keep it short
Most interface animations feel best between 150ms and 400ms. Longer durations make an app feel slow, however nice the curve. Also respect people who turn on reduced motion in their system settings: the preview here stops animating when that setting is on, and your own CSS should do the same with a prefers-reduced-motion media query.
How to use the Cubic Bezier Generator
- Drag the pink and teal handles on the graph, or type the four numbers.
- With a handle focused, use the arrow keys for fine steps (hold Shift for bigger ones).
- Pick a preset such as ease-out-back or ease-out-expo to start.
- Press Play to compare your curve with linear motion. Change the duration or animation type.
- Click Copy CSS.
Features
- Draggable control points with keyboard support and live number fields.
- Y values from −0.6 to 1.6 for overshoot and anticipation effects.
- Eleven presets, including the five CSS keywords plus back, expo and quart curves.
- Side-by-side animation with linear, as move, scale, fade or rotate.
- Outputs the CSS keyword when your curve matches one, otherwise
cubic-bezier().
Frequently asked questions
What do the four cubic-bezier numbers mean?
They are the x and y positions of two control points: cubic-bezier(x1, y1, x2, y2). The curve always starts at 0,0 and ends at 1,1. X is time and must stay between 0 and 1; Y is progress and can go beyond that range.
Which easing should I use for UI animations?
For things entering the screen, an ease-out curve feels responsive, because it starts fast and settles gently. For things leaving, ease-in works well. ease-in-out suits elements that move from one place to another on screen.
How do I make a bounce or overshoot effect?
Drag the second handle above the top of the graph, so y2 is greater than 1. The element passes its target and comes back, like the ease-out-back preset. A true multi-bounce needs keyframes or the linear() function instead.
Does the curve affect animation performance?
No. The timing function only changes how progress is spread over time. Performance depends on which properties you animate: transform and opacity are the cheapest.
Written by Dewan Razib