ease-in-out

The browser's built-in curves. Mild, safe and everywhere, which is also why interfaces that use only these tend to feel generic. An ease-in-out speeds up and slows down symmetrically. Use it for objects that move from one resting place to another while staying on screen.

Exact cubic-bezier(0.42, 0, 0.58, 1)
0time →1
This curve
Linear
Export finishedlaunch-film.mp4 · 4K
Half way at50 %
90 % at78 %
OvershootNone
Peak speed1.72×

Code

This curve is a true cubic bezier, so every platform can use it exactly.

/* A CSS keyword: same curve as cubic-bezier(0.42, 0, 0.58, 1) */
transition: transform 600ms ease-in-out;

Exact CSS

linear() draws any curve with straight segments. This one uses 17 points chosen so the motion never strays more than 0.25 % from the real ease-in-out; every current browser supports it.

linear(0, 0.007 6%, 0.029 12%, 0.065 17.8%, 0.115 23.7%, 0.185 29.8%, 0.273 36.2%, 0.375 42.7%, 0.597 55.7%, 0.687 61.2%, 0.775 67.2%, 0.845 72.7%, 0.883 76.2%, 0.914 79.5%, 0.962 86.2%, 0.99 93%, 1)

Questions

What is ease-in-out as a cubic-bezier?

cubic-bezier(0.42, 0, 0.58, 1). It is exactly this curve.

When should I use ease-in-out?

Hover states, small UI transitions and anything that should feel native rather than designed. An ease-in-out speeds up and slows down symmetrically. Use it for objects that move from one resting place to another while staying on screen.

Other CSS keywords

Compare with

Animate with ease-in-out in Kineform

Pick it from any key, text animator or camera move, or bend it in the graph editor — on a real-time engine with 3D, light, type and video.