Choosing the right easing curve
Why ease out, ease in and custom curves change how movement feels, and how to pick the right one.

Zander Whitehurst
7 min read
Two animations can share exactly the same duration and distance and still feel completely different. One feels crisp and responsive. The other feels sluggish or strangely mechanical. Nine times out of ten, the difference is the easing curve.
Easing describes how an animation changes speed over time. It is the most powerful tool you have for making motion feel natural, and also the one people most often leave on the default. Once you understand a few simple rules and learn to read a curve, you will never look at a transition the same way again.
Why easing matters
In the physical world, nothing moves at a constant speed from the instant it starts to the instant it stops. A ball rolling across a table slows down as friction takes over. A car pulling away from traffic lights builds up speed gradually. Our brains are tuned to this kind of movement, so when something on screen moves differently, we notice.
Easing lets us borrow that physical intuition. By choosing how an element accelerates and decelerates, we can make it feel light or heavy, eager or relaxed, arriving or departing. It is how motion communicates intent.
Why linear feels robotic
A linear curve moves at exactly the same speed from start to finish. It begins at full pace with no acceleration and stops dead with no deceleration.
That abrupt start and stop is what makes linear motion feel robotic. Real objects have mass, and mass means they take a moment to speed up and slow down. Without that, an element looks like it is being dragged along a track by a machine.
Linear does have its uses. It works well for things that loop continuously, like a loading spinner or a progress bar, and for properties that are not about movement, like a colour or opacity change happening alongside other motion. But for anything that travels across the screen, linear is almost never the right answer.
Ease out for entering
Ease out starts fast and slows down towards the end. It is the single most useful curve in interface design.
When an element enters the screen, ease out makes it react immediately and then settle gently into place. That immediate start is what makes an interface feel responsive. The user clicks, and something happens straight away. The soft landing makes it feel controlled rather than abrupt.
Use ease out for:
- Elements entering the screen, such as modals, dropdowns, toasts and tooltips.
- Responses to user input, like a button press or a toggle switching on.
- Anything that needs to feel quick, because the fast start makes the whole animation feel shorter than it is.
A curve like cubic-bezier(0.22, 1, 0.36, 1) is a great default here. It is quite strong, getting most of the movement done early and then easing in with a long, smooth tail.
Ease in for leaving
Ease in is the mirror image. It starts slowly and speeds up towards the end, like something gathering momentum as it departs.
That makes it a natural fit for exits. When an element leaves the screen, it can start gently and accelerate away, which reads as the element moving off with purpose. Because the fastest part is at the very end, the element disappears quickly once it gets going.
Be careful with ease in, though. It feels slow at the start, so it is rarely right for anything the user is waiting on. Keep exit animations short, often a little shorter than the matching entrance, so the slow start never feels like lag. A curve like cubic-bezier(0.55, 0, 1, 0.45) works well.
Ease in out for moving on screen
Ease in out starts slowly, speeds up in the middle and slows down again at the end. It is the curve for elements that move from one place to another while staying visible the whole time.
Think of a tab indicator sliding between tabs, a card reordering in a list or a carousel moving to the next slide. The element is on screen before and after the movement, so it should accelerate away from its starting point and decelerate into its destination. That symmetry feels balanced and natural.
Ease in out is less suitable for entrances and exits, because the slow start makes interactions feel delayed. Save it for movement within the screen. Something like cubic-bezier(0.65, 0, 0.35, 1) is a solid choice.
A quick reference
If you only remember one thing from this post, make it this:
- Entering? Use ease out.
- Leaving? Use ease in, and keep it short.
- Moving on screen? Use ease in out.
- Looping or not moving? Linear can be fine.
These rules will not cover every situation, but they will get you to a good result most of the time.
Custom cubic beziers
The built in CSS keywords, ease, ease-in, ease-out and ease-in-out, are fine, but they are quite gentle. Most polished products use custom curves with a bit more character.
A cubic bezier is defined by four numbers: cubic-bezier(x1, y1, x2, y2). These are the coordinates of two control points that shape the curve between a fixed start at (0, 0) and a fixed end at (1, 1). The x values represent time and must stay between 0 and 1. The y values represent progress and can go beyond that range, which lets you create overshoot.
You rarely need to calculate these by hand. Browser dev tools include a curve editor, and sites like cubic-bezier.com let you drag the control points and preview the result. The skill is in knowing what you are aiming for.
Here is a set of custom curves you might use in practice:
:root {
--ease-out: cubic-bezier(0.22, 1, 0.36, 1);
--ease-in: cubic-bezier(0.55, 0, 1, 0.45);
--ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
--ease-overshoot: cubic-bezier(0.34, 1.56, 0.64, 1);
}
The last one has a y value above 1, so the element slightly overshoots its destination before settling. Used sparingly, that adds a little playfulness. Used everywhere, it gets tiring very quickly. Our AI UI Motion Skills give your AI agent curves like these as sensible defaults.
How to read a curve
Easing curves are drawn on a simple graph. The horizontal axis is time, running from the start of the animation on the left to the end on the right. The vertical axis is progress, running from the starting value at the bottom to the final value at the top.
The steepness of the curve at any point tells you the speed at that moment:
- Steep sections mean the element is moving quickly.
- Flat sections mean it is moving slowly or barely at all.
- A straight diagonal line is linear, constant speed throughout.
- Steep at the start, flat at the end is ease out.
- Flat at the start, steep at the end is ease in.
- Flat at both ends, steep in the middle is ease in out.
- A curve that rises above the top overshoots before settling back.
Once you can read curves like this, you can look at any easing function and predict how it will feel before you even run it.
Train your eye
I still remember a workshop where I showed the same modal animation twice, identical in every way except the easing. The first used linear and the second used a strong ease out. I asked the room which one was faster. Almost everyone said the second, even though both were exactly 250ms. That is the power of easing. It changes not just how motion looks but how long it feels.
The best way to build intuition is to experiment. Take one animation, keep the duration fixed and swap between curves. Notice how each one changes the character of the movement. Then look at products you admire and try to identify the curves they use.
If you want guided practice with feedback, the AI Motion Design bootcamp spends real time on easing, from reading curves to building custom ones in code. Get the easing right, and most of your motion will start to feel right too.
Memorisely