easeInOutExpo
Exponential: almost all of the change happens in a short burst, then a very long settle. The most dramatic of the classic curves. 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.
Code
The cubic-bezier is a close fit (up to 3.7 % off). The CSS linear() value and the JavaScript function are exact.
/* Exact curve (all modern browsers): */
transition: transform 600ms linear(0, 0.004 15.5%, 0.014 24.3%, 0.036 31%, 0.052 33.7%, 0.072 36%, 0.102 38.5%, 0.137 40.7%, 0.181 42.7%, 0.233 44.5%, 0.294 46.2%, 0.362 47.7%, 0.435 49%, 0.544 50.7%, 0.603 51.7%, 0.662 52.8%, 0.713 54%, 0.772 55.7%, 0.819 57.3%, 0.86 59.2%, 0.896 61.3%, 0.927 63.8%, 0.949 66.5%, 0.967 69.7%, 0.981 73.5%, 0.995 82.8%, 1);
/* Cubic-bezier approximation: */
transition: transform 600ms cubic-bezier(0.87, 0, 0.13, 1);Exact CSS
linear() draws any curve with straight segments. This one uses 27 points chosen so the motion never strays more than 0.25 % from the real easeInOutExpo; every current browser supports it.
linear(0, 0.004 15.5%, 0.014 24.3%, 0.036 31%, 0.052 33.7%, 0.072 36%, 0.102 38.5%, 0.137 40.7%, 0.181 42.7%, 0.233 44.5%, 0.294 46.2%, 0.362 47.7%, 0.435 49%, 0.544 50.7%, 0.603 51.7%, 0.662 52.8%, 0.713 54%, 0.772 55.7%, 0.819 57.3%, 0.86 59.2%, 0.896 61.3%, 0.927 63.8%, 0.949 66.5%, 0.967 69.7%, 0.981 73.5%, 0.995 82.8%, 1)
Questions
What is easeInOutExpo as a cubic-bezier?
The usual fit is cubic-bezier(0.87, 0, 0.13, 1). It strays from the true easeInOutExpo by up to 3.7 % 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 easeInOutExpo?
Title reveals, camera whips and fast entrances that should snap in and then hang still. The signature of Apple-style product films. 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 expo family
Compare with
Animate with easeInOutExpo 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.