How to Choose and Design Easing Curves for UI Animation
What cubic-bezier easing curves are, when to use ease-out, ease-in and overshoot, how duration affects easing, and how to share curves across platforms.

How to Choose and Design Easing Curves for UI Animation
Two animations can move the same distance in the same time and still feel completely different. One looks mechanical, the other natural. The difference is the easing curve, the rule that maps time to progress. This guide explains how easing works and how to pick and design curves, with the free cubic bezier easing editor for experimenting.
Linear motion looks wrong
Real objects do not start and stop instantly; they accelerate and decelerate. A box that moves at constant speed and then halts looks robotic. Easing adds acceleration at the start, deceleration at the end, or both.
Reading a cubic-bezier
A cubic-bezier easing is a curve from (0, 0) to (1, 1). The horizontal axis is time, the vertical axis is progress. Its shape is set by two control points, written cubic-bezier(x1, y1, x2, y2). A steep start means fast movement at the beginning; a flat end means a gentle arrival. Because x is time, both x values must stay between 0 and 1. The y values may go beyond that range, which makes the motion overshoot or pull back.
The everyday three
- Ease-out (fast start, slow end) suits elements that enter the screen or respond to the user: menus opening, toasts appearing, a card expanding after a tap. It feels responsive because the movement starts immediately.
- Ease-in (slow start, fast end) suits elements that leave: a dismissed dialog accelerating away.
- Ease-in-out suits elements that move from one place to another while staying on screen, such as a carousel slide.
Material Design's standard curve, cubic-bezier(0.2, 0, 0, 1), is a strong ease-out that works for most interface motion.
Overshoot and anticipation
A y value above 1 creates overshoot: the element passes its target and settles back. Used lightly, it adds personality to a button press or a notification badge. Used everywhere, it becomes tiring. A y value below 0 moves backwards first, like winding up before a throw. Check the value range of your curve; an overshoot of 10 % on a 240-pixel slide moves the element 24 pixels too far, which may cross other content.
Duration and easing work together
A strong ease-out front-loads movement, so the same duration feels shorter. Common UI durations are 150 to 300 milliseconds for small elements and up to 500 milliseconds for large surfaces. If an animation feels slow, try a stronger curve before shortening the time.
Compare side by side
Easing differences are subtle when seen alone and obvious when seen together. Play your curve next to the standard keywords and a few known curves at the same duration. Choose the one that feels right at real speed, not the one that looks nicest as a graph.
One curve, every platform
A design system should define a small set of named curves and use them everywhere. The cubic-bezier definition is shared by CSS, the Web Animations API, Android's PathInterpolator and Jetpack Compose's CubicBezierEasing, iOS's CAMediaTimingFunction and SwiftUI's timingCurve, and Flutter's Cubic. Hand engineers the four numbers and a name, and the motion will match across web and native apps.
When cubic-bezier is not enough
A single cubic curve cannot bounce several times or imitate a real spring. CSS linear() lets you list progress values at many points in time and describe any shape; native platforms offer spring animations defined by stiffness and damping. Use those for physical, playful motion and keep cubic curves for most interface transitions.
Respect reduced motion
Some people get dizzy or distracted by movement. Honour the prefers-reduced-motion setting by shortening or removing large animations, and avoid overshoot for those users.
Limits
Easing guidelines are conventions, not laws. Brand, context and the size of the moving element all change what feels right, so test with real users and on real devices. Very short animations under about 100 milliseconds make easing differences almost impossible to perceive.



