MeasingsSee, tune and export easings

power2.inOut ease

Also known as Cubic in-out, easeInOutCubic.

Cubic in-out is a power curve (progress raised to a fixed exponent): the higher the exponent, the stronger the acceleration. The in-out variant is slow at both ends and fastest in the middle, good for moving something between two positions on screen. The exponent is 3. It is identical to GSAP's built-in "power2.inOut" 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: "power2.inOut" });

GSAP CustomEase

gsap.registerPlugin(CustomEase);
CustomEase.create("cubicInOut", "M0,0 C0.0833,0 0.1667,0 0.25,0.0625 C0.3333,0.125 0.4167,0.25 0.5,0.5 C0.5833,0.75 0.6667,0.875 0.75,0.9375 C0.8333,1 0.9167,1 1,1");

gsap.to(".box", { x: 200, duration: 0.6, ease: "cubicInOut" });

CSS linear()

transition-timing-function: linear(0, 0.0035 9.6%, 0.0093 13.27%, 0.0185 16.67%, 0.0317 19.93%, 0.0491 23.07%, 0.0703 26%, 0.0962 28.87%, 0.1303 31.93%, 0.1705 34.93%, 0.2172 37.87%, 0.269 40.67%, 0.324 43.27%, 0.386 45.87%, 0.4479 48.2%, 0.537 51.27%, 0.5829 52.93%, 0.6355 55%, 0.6834 57.07%, 0.7362 59.6%, 0.7828 62.13%, 0.8246 64.73%, 0.8623 67.47%, 0.899 70.67%, 0.9297 74%, 0.9546 77.53%, 0.9734 81.2%, 0.9865 85%, 0.9949 89.13%, 0.999 93.73%, 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.0035_9.6%,0.0093_13.27%,0.0185_16.67%,0.0317_19.93%,0.0491_23.07%,0.0703_26%,0.0962_28.87%,0.1303_31.93%,0.1705_34.93%,0.2172_37.87%,0.269_40.67%,0.324_43.27%,0.386_45.87%,0.4479_48.2%,0.537_51.27%,0.5829_52.93%,0.6355_55%,0.6834_57.07%,0.7362_59.6%,0.7828_62.13%,0.8246_64.73%,0.8623_67.47%,0.899_70.67%,0.9297_74%,0.9546_77.53%,0.9734_81.2%,0.9865_85%,0.9949_89.13%,0.999_93.73%,1)]

Webflow

In Interactions, choose a custom ease and paste this path:

M0,0 C0.0833,0 0.1667,0 0.25,0.0625 C0.3333,0.125 0.4167,0.25 0.5,0.5 C0.5833,0.75 0.6667,0.875 0.75,0.9375 C0.8333,1 0.9167,1 1,1

Related easings

See how power2.inOut measures up against all 91 easings in the easing comparison: progress over time, overshoot and peak speed.

Browse all 91 easings in Measings