back.inOut(2) ease
Also known as Back strong in-out.
Back strong 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 2. It is identical to GSAP's built-in "back.inOut(2)" 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(2)" });
GSAP CustomEase
gsap.registerPlugin(CustomEase);
CustomEase.create("backStrongInOut", "M0,0 C0.0833,0 0.1667,-0.0833 0.25,-0.0625 C0.3333,-0.0417 0.4167,0.0833 0.5,0.5 C0.5833,0.9167 0.6667,1.0417 0.75,1.0625 C0.8333,1.0833 0.9167,1 1,1");
gsap.to(".box", { x: 200, duration: 0.6, ease: "backStrongInOut" });
CSS linear()
transition-timing-function: linear(0, -0.0021 2.4%, -0.0085 5%, -0.0537 16.13%, -0.0616 18.8%, -0.0654 21.13%, -0.0647 23.87%, -0.058 26.4%, -0.0451 28.8%, -0.0256 31.13%, -0.0102 32.53%, 0.0083 33.93%, 0.0289 35.27%, 0.0525 36.6%, 0.0794 37.93%, 0.1082 39.2%, 0.1402 40.47%, 0.1756 41.73%, 0.2123 42.93%, 0.2501 44.07%, 0.2934 45.27%, 0.3376 46.4%, 0.4235 48.4%, 0.5549 51.13%, 0.6207 52.6%, 0.6939 54.4%, 0.7613 56.27%, 0.8322 58.53%, 0.8934 60.87%, 0.9449 63.27%, 0.9868 65.73%, 1.0208 68.4%, 1.0451 71.2%, 1.0599 74.13%, 1.0658 77.33%, 1.0644 79.73%, 1.0587 82.33%, 1.0102 94.47%, 1.0025 97.4%, 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.0021_2.4%,-0.0085_5%,-0.0537_16.13%,-0.0616_18.8%,-0.0654_21.13%,-0.0647_23.87%,-0.058_26.4%,-0.0451_28.8%,-0.0256_31.13%,-0.0102_32.53%,0.0083_33.93%,0.0289_35.27%,0.0525_36.6%,0.0794_37.93%,0.1082_39.2%,0.1402_40.47%,0.1756_41.73%,0.2123_42.93%,0.2501_44.07%,0.2934_45.27%,0.3376_46.4%,0.4235_48.4%,0.5549_51.13%,0.6207_52.6%,0.6939_54.4%,0.7613_56.27%,0.8322_58.53%,0.8934_60.87%,0.9449_63.27%,0.9868_65.73%,1.0208_68.4%,1.0451_71.2%,1.0599_74.13%,1.0658_77.33%,1.0644_79.73%,1.0587_82.33%,1.0102_94.47%,1.0025_97.4%,1)]
Webflow
In Interactions, choose a custom ease and paste this path:
M0,0 C0.0833,0 0.1667,-0.0833 0.25,-0.0625 C0.3333,-0.0417 0.4167,0.0833 0.5,0.5 C0.5833,0.9167 0.6667,1.0417 0.75,1.0625 C0.8333,1.0833 0.9167,1 1,1
Related easings
- back.in(1.7)
- back.out(1.7)
- back.inOut(1.7)
- Back out-in
- back.in(0.75)
- back.out(0.75)
- back.inOut(0.75)
- power2.inOut
- sine.inOut
- Expo in-out
- circ.inOut
- elastic.inOut(1, 0.3)
See how back.inOut(2) measures up against all 91 easings in the easing comparison: progress over time, overshoot and peak speed.
