easeInBack

Overshoots the target (or pulls back before leaving) by about 10 % with the classic constant 1.70158, giving a little anticipation or settle. An ease-in starts slowly and leaves at full speed. Use it for things exiting the frame or starting a move they will not finish on screen; on an entrance it feels late and sluggish.

Fit cubic-bezier(0.36, 0, 0.66, -0.56)
0time →1
This curve
Linear
Export finishedlaunch-film.mp4 · 4K
Half way at87 %
90 % at98 %
Pull-back10 %
Bezier fit error0.5 %

Code

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

/* Exact curve (all modern browsers): */
transition: transform 600ms linear(0, -0.003 4.3%, -0.012 9%, -0.084 31.3%, -0.096 36.7%, -0.1 41.5%, -0.095 47.2%, -0.079 52.3%, -0.05 57.3%, -0.01 62%, 0.019 64.7%, 0.053 67.3%, 0.132 72.3%, 0.179 74.8%, 0.228 77.2%, 0.286 79.7%, 0.345 82%, 0.41 84.3%, 0.481 86.7%, 0.557 89%, 0.633 91.2%, 0.721 93.5%, 0.808 95.7%, 0.901 97.8%, 1);

/* Cubic-bezier approximation: */
transition: transform 600ms cubic-bezier(0.36, 0, 0.66, -0.56);

Exact CSS

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

linear(0, -0.003 4.3%, -0.012 9%, -0.084 31.3%, -0.096 36.7%, -0.1 41.5%, -0.095 47.2%, -0.079 52.3%, -0.05 57.3%, -0.01 62%, 0.019 64.7%, 0.053 67.3%, 0.132 72.3%, 0.179 74.8%, 0.228 77.2%, 0.286 79.7%, 0.345 82%, 0.41 84.3%, 0.481 86.7%, 0.557 89%, 0.633 91.2%, 0.721 93.5%, 0.808 95.7%, 0.901 97.8%, 1)

Questions

What is easeInBack as a cubic-bezier?

The usual fit is cubic-bezier(0.36, 0, 0.66, -0.56). It strays from the true easeInBack by up to 0.5 % 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 easeInBack?

Playful UI, badges popping in, icons and stickers. Avoid it on large surfaces where the overshoot reads as a glitch. An ease-in starts slowly and leaves at full speed. Use it for things exiting the frame or starting a move they will not finish on screen; on an entrance it feels late and sluggish.

Does easeInBack move backwards first?

Yes: it pulls back 10 % of the distance before setting off — an anticipation.

The rest of the back family

Compare with

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