easeInOutCirc
Follows a quarter circle: a hard acceleration near one end and an almost flat stretch at the other. 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.9 % off). The CSS linear() value and the JavaScript function are exact.
/* Exact curve (all modern browsers): */
transition: transform 600ms linear(0, 0.01 9.8%, 0.038 19.2%, 0.06 23.7%, 0.085 27.8%, 0.113 31.7%, 0.146 35.3%, 0.185 38.8%, 0.229 42%, 0.275 44.7%, 0.325 46.8%, 0.372 48.3%, 0.393 48.8%, 0.419 49.3%, 0.442 49.7%, 0.459 49.8%, 0.541 50.2%, 0.558 50.3%, 0.581 50.7%, 0.599 51%, 0.634 51.8%, 0.68 53.3%, 0.721 55.2%, 0.763 57.5%, 0.802 60.2%, 0.847 64%, 0.886 68.2%, 0.92 72.8%, 0.948 77.8%, 0.971 83.2%, 0.987 88.7%, 0.997 94.3%, 1);
/* Cubic-bezier approximation: */
transition: transform 600ms cubic-bezier(0.85, 0, 0.15, 1);Exact CSS
linear() draws any curve with straight segments. This one uses 33 points chosen so the motion never strays more than 0.25 % from the real easeInOutCirc; every current browser supports it.
linear(0, 0.01 9.8%, 0.038 19.2%, 0.06 23.7%, 0.085 27.8%, 0.113 31.7%, 0.146 35.3%, 0.185 38.8%, 0.229 42%, 0.275 44.7%, 0.325 46.8%, 0.372 48.3%, 0.393 48.8%, 0.419 49.3%, 0.442 49.7%, 0.459 49.8%, 0.541 50.2%, 0.558 50.3%, 0.581 50.7%, 0.599 51%, 0.634 51.8%, 0.68 53.3%, 0.721 55.2%, 0.763 57.5%, 0.802 60.2%, 0.847 64%, 0.886 68.2%, 0.92 72.8%, 0.948 77.8%, 0.971 83.2%, 0.987 88.7%, 0.997 94.3%, 1)
Questions
What is easeInOutCirc as a cubic-bezier?
The usual fit is cubic-bezier(0.85, 0, 0.15, 1). It strays from the true easeInOutCirc by up to 3.9 % 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 easeInOutCirc?
Mechanical motion — drawers, sliders, things that hit a stop. Use sparingly; the corner of the curve can feel abrupt. 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 circ family
Compare with
Animate with easeInOutCirc 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.