MeasingsSee, tune and export easings

Power in-out ease

Power 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 1.68. GSAP has no built-in ease with this exact shape, so the code uses CustomEase.

Measings shows it on real UI animations and lets you fine-tune the curve before you copy the code.

Code

GSAP CustomEase

gsap.registerPlugin(CustomEase);
CustomEase.create("powerInOut", "M0,0 C0.0208,0 0.0417,0.0067 0.0625,0.0152 C0.0833,0.0237 0.1042,0.0351 0.125,0.0487 C0.1667,0.076 0.2083,0.1124 0.25,0.156 C0.3333,0.2434 0.4167,0.36 0.5,0.5 C0.5833,0.64 0.6667,0.7566 0.75,0.844 C0.7917,0.8876 0.8333,0.924 0.875,0.9513 C0.8958,0.9649 0.9167,0.9763 0.9375,0.9848 C0.9583,0.9933 0.9792,1 1,1");

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

CSS linear()

transition-timing-function: linear(0, 0.0039 2.8%, 0.0142 6%, 0.0302 9.4%, 0.0516 12.93%, 0.0774 16.47%, 0.1085 20.13%, 0.1443 23.87%, 0.185 27.67%, 0.2616 34%, 0.3504 40.47%, 0.4336 45.93%, 0.5915 55.67%, 0.693 62.6%, 0.741 66.2%, 0.7849 69.73%, 0.8246 73.2%, 0.861 76.67%, 0.8915 79.87%, 0.9184 83%, 0.942 86.13%, 0.9615 89.13%, 0.9773 92.07%, 0.9893 94.93%, 0.9971 97.67%, 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.0039_2.8%,0.0142_6%,0.0302_9.4%,0.0516_12.93%,0.0774_16.47%,0.1085_20.13%,0.1443_23.87%,0.185_27.67%,0.2616_34%,0.3504_40.47%,0.4336_45.93%,0.5915_55.67%,0.693_62.6%,0.741_66.2%,0.7849_69.73%,0.8246_73.2%,0.861_76.67%,0.8915_79.87%,0.9184_83%,0.942_86.13%,0.9615_89.13%,0.9773_92.07%,0.9893_94.93%,0.9971_97.67%,1)]

Webflow

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

M0,0 C0.0208,0 0.0417,0.0067 0.0625,0.0152 C0.0833,0.0237 0.1042,0.0351 0.125,0.0487 C0.1667,0.076 0.2083,0.1124 0.25,0.156 C0.3333,0.2434 0.4167,0.36 0.5,0.5 C0.5833,0.64 0.6667,0.7566 0.75,0.844 C0.7917,0.8876 0.8333,0.924 0.875,0.9513 C0.8958,0.9649 0.9167,0.9763 0.9375,0.9848 C0.9583,0.9933 0.9792,1 1,1

Related easings

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

Browse all 91 easings in Measings