back.inOut(1.7) ease
Also known as Back in-out, easeInOutBack.
Back in-out is a back curve that overshoots its target (or pulls back before it starts) and then settles. The in-out variant is slow at both ends and fastest in the middle, good for moving something between two positions on screen. The overshoot is 1.7. It is identical to GSAP's built-in "back.inOut(1.7)" ease, so no plugin is needed there.
Measings shows it on real UI animations and lets you fine-tune the curve before you copy the code.
Code
GSAP
gsap.to(".box", { x: 200, duration: 0.6, ease: "back.inOut(1.7)" });
GSAP CustomEase
gsap.registerPlugin(CustomEase);
CustomEase.create("backDefaultInOut", "M0,0 C0.0833,0 0.1667,-0.0708 0.25,-0.0437 C0.3333,-0.0167 0.4167,0.1083 0.5,0.5 C0.5833,0.8917 0.6667,1.0167 0.75,1.0437 C0.8333,1.0708 0.9167,1 1,1");
gsap.to(".box", { x: 200, duration: 0.6, ease: "backDefaultInOut" });
CSS linear()
transition-timing-function: linear(0, -0.006 4.53%, -0.0419 15.67%, -0.0477 18.33%, -0.0499 20.73%, -0.0475 23.53%, -0.0394 26.13%, -0.0255 28.6%, -0.0057 30.93%, 0.0277 33.73%, 0.0716 36.47%, 0.125 39.07%, 0.1555 40.33%, 0.1891 41.6%, 0.2239 42.8%, 0.2617 44%, 0.3027 45.2%, 0.3443 46.33%, 0.428 48.4%, 0.5516 51.13%, 0.6164 52.67%, 0.6854 54.47%, 0.7491 56.33%, 0.8182 58.67%, 0.8765 61%, 0.9259 63.4%, 0.9666 65.87%, 1.0009 68.6%, 1.0259 71.47%, 1.0419 74.47%, 1.0493 77.67%, 1.0495 80.2%, 1.0452 83%, 1.0077 94.8%, 1.0019 97.53%, 1);CSS has no built-in curve of this shape, so it is sampled into linear(), which works in all current browsers.
Tailwind
ease-[linear(0,-0.006_4.53%,-0.0419_15.67%,-0.0477_18.33%,-0.0499_20.73%,-0.0475_23.53%,-0.0394_26.13%,-0.0255_28.6%,-0.0057_30.93%,0.0277_33.73%,0.0716_36.47%,0.125_39.07%,0.1555_40.33%,0.1891_41.6%,0.2239_42.8%,0.2617_44%,0.3027_45.2%,0.3443_46.33%,0.428_48.4%,0.5516_51.13%,0.6164_52.67%,0.6854_54.47%,0.7491_56.33%,0.8182_58.67%,0.8765_61%,0.9259_63.4%,0.9666_65.87%,1.0009_68.6%,1.0259_71.47%,1.0419_74.47%,1.0493_77.67%,1.0495_80.2%,1.0452_83%,1.0077_94.8%,1.0019_97.53%,1)]
Webflow
In Interactions, choose a custom ease and paste this path:
M0,0 C0.0833,0 0.1667,-0.0708 0.25,-0.0437 C0.3333,-0.0167 0.4167,0.1083 0.5,0.5 C0.5833,0.8917 0.6667,1.0167 0.75,1.0437 C0.8333,1.0708 0.9167,1 1,1
Related easings
- back.in(1.7)
- back.out(1.7)
- Back out-in
- back.in(0.75)
- back.out(0.75)
- back.inOut(0.75)
- Back light out-in
- power2.inOut
- sine.inOut
- Expo in-out
- circ.inOut
- elastic.inOut(1, 0.3)
See how back.inOut(1.7) measures up against all 91 easings in the easing comparison: progress over time, overshoot and peak speed.
