easeInOutSine

The gentlest of the classic curves: progress follows a quarter of a sine wave, so speed changes so smoothly you barely notice the ease. 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.

Fit cubic-bezier(0.37, 0, 0.63, 1)
0time →1
This curve
Linear
Export finishedlaunch-film.mp4 · 4K
Half way at50 %
90 % at80 %
OvershootNone
Bezier fit error0.2 %

Code

The cubic-bezier is a close fit (up to 0.2 % off). The CSS linear() value and the JavaScript function are exact.

/* Exact curve (all modern browsers): */
transition: transform 600ms linear(0, 0.007 5.3%, 0.029 10.8%, 0.064 16.3%, 0.115 22%, 0.183 28.2%, 0.271 34.8%, 0.376 42%, 0.686 62.2%, 0.775 68.5%, 0.846 74.3%, 0.914 81%, 0.962 87.5%, 0.991 93.8%, 1);

/* Cubic-bezier approximation: */
transition: transform 600ms cubic-bezier(0.37, 0, 0.63, 1);

Exact CSS

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

linear(0, 0.007 5.3%, 0.029 10.8%, 0.064 16.3%, 0.115 22%, 0.183 28.2%, 0.271 34.8%, 0.376 42%, 0.686 62.2%, 0.775 68.5%, 0.846 74.3%, 0.914 81%, 0.962 87.5%, 0.991 93.8%, 1)

Questions

What is easeInOutSine as a cubic-bezier?

The usual fit is cubic-bezier(0.37, 0, 0.63, 1). It strays from the true easeInOutSine by up to 0.2 % of the distance travelled; for the exact curve use the CSS linear() value on this page, which stays within 0.25 %.

When should I use easeInOutSine?

Ambient motion — breathing glows, slow camera drifts, loops that should never call attention to themselves. 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.

The rest of the sine family

Compare with

Animate with easeInOutSine 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.