MeasingsSee, tune and export easings

Expo in-out ease

Also known as easeInOutExpo.

Expo in-out is an exponential curve with a very sharp acceleration, almost no motion at one end and nearly all of it at the other. The in-out variant is slow at both ends and fastest in the middle, good for moving something between two positions on screen. GSAP's own expo ease is rescaled to hit 0 and 1 exactly and differs from it by about 0.8%, so the exact curve goes through 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("expoInOut", "M0,0 C0,0.0163 0,0.0005 0.0001,0.0005 C0.0001,0.0005 0.0001,0.0005 0.0001,0.0005 C0.0002,0.0005 0.0002,0.0005 0.0002,0.0005 C0.0003,0.0005 0.0004,0.0005 0.0005,0.0005 C0.0007,0.0005 0.0008,0.0005 0.001,0.0005 C0.0013,0.0005 0.0016,0.0005 0.002,0.0005 C0.0026,0.0005 0.0033,0.0005 0.0039,0.0005 C0.0052,0.0005 0.0065,0.0005 0.0078,0.0005 C0.0104,0.0006 0.013,0.0006 0.0156,0.0006 C0.0208,0.0007 0.026,0.0007 0.0313,0.0008 C0.0417,0.0009 0.0521,0.001 0.0625,0.0012 C0.0833,0.0015 0.1042,0.002 0.125,0.0028 C0.1667,0.0044 0.2083,0.0066 0.25,0.0156 C0.2708,0.0201 0.2917,0.0264 0.3125,0.0372 C0.3333,0.0479 0.3542,0.0629 0.375,0.0884 C0.3958,0.1139 0.4167,0.1495 0.4375,0.2102 C0.4583,0.2709 0.4792,0.3556 0.5,0.5 C0.5208,0.6444 0.5417,0.7291 0.5625,0.7898 C0.5833,0.8505 0.6042,0.8861 0.625,0.9116 C0.6458,0.9371 0.6667,0.9521 0.6875,0.9628 C0.7083,0.9736 0.7292,0.9799 0.75,0.9844 C0.7917,0.9934 0.8333,0.9956 0.875,0.9972 C0.8958,0.998 0.9167,0.9985 0.9375,0.9988 C0.9479,0.999 0.9583,0.9991 0.9688,0.9992 C0.974,0.9993 0.9792,0.9993 0.9844,0.9994 C0.987,0.9994 0.9896,0.9994 0.9922,0.9995 C0.9935,0.9995 0.9948,0.9995 0.9961,0.9995 C0.9967,0.9995 0.9974,0.9995 0.998,0.9995 C0.9984,0.9995 0.9987,0.9995 0.999,0.9995 C0.9992,0.9995 0.9993,0.9995 0.9995,0.9995 C0.9996,0.9995 0.9997,0.9995 0.9998,0.9995 C0.9998,0.9995 0.9998,0.9995 0.9999,0.9995 C0.9999,0.9995 0.9999,0.9995 0.9999,0.9995 C1,0.9995 1,0.9837 1,1");

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

CSS linear()

transition-timing-function: linear(0, 0.0043 15.67%, 0.0084 20.53%, 0.0145 24.47%, 0.0237 28%, 0.0359 31%, 0.052 33.67%, 0.0725 36.07%, 0.102 38.53%, 0.1384 40.73%, 0.159 41.73%, 0.1826 42.73%, 0.2078 43.67%, 0.2365 44.6%, 0.2643 45.4%, 0.2952 46.2%, 0.3299 47%, 0.3652 47.73%, 0.4005 48.4%, 0.4353 49%, 0.5441 50.67%, 0.5995 51.6%, 0.6608 52.8%, 0.7155 54.07%, 0.7453 54.87%, 0.7721 55.67%, 0.8208 57.4%, 0.8616 59.27%, 0.8951 61.27%, 0.9255 63.73%, 0.9495 66.53%, 0.9673 69.67%, 0.9805 73.4%, 0.9891 77.6%, 0.9947 82.8%, 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.0043_15.67%,0.0084_20.53%,0.0145_24.47%,0.0237_28%,0.0359_31%,0.052_33.67%,0.0725_36.07%,0.102_38.53%,0.1384_40.73%,0.159_41.73%,0.1826_42.73%,0.2078_43.67%,0.2365_44.6%,0.2643_45.4%,0.2952_46.2%,0.3299_47%,0.3652_47.73%,0.4005_48.4%,0.4353_49%,0.5441_50.67%,0.5995_51.6%,0.6608_52.8%,0.7155_54.07%,0.7453_54.87%,0.7721_55.67%,0.8208_57.4%,0.8616_59.27%,0.8951_61.27%,0.9255_63.73%,0.9495_66.53%,0.9673_69.67%,0.9805_73.4%,0.9891_77.6%,0.9947_82.8%,1)]

Webflow

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

M0,0 C0,0.0163 0,0.0005 0.0001,0.0005 C0.0001,0.0005 0.0001,0.0005 0.0001,0.0005 C0.0002,0.0005 0.0002,0.0005 0.0002,0.0005 C0.0003,0.0005 0.0004,0.0005 0.0005,0.0005 C0.0007,0.0005 0.0008,0.0005 0.001,0.0005 C0.0013,0.0005 0.0016,0.0005 0.002,0.0005 C0.0026,0.0005 0.0033,0.0005 0.0039,0.0005 C0.0052,0.0005 0.0065,0.0005 0.0078,0.0005 C0.0104,0.0006 0.013,0.0006 0.0156,0.0006 C0.0208,0.0007 0.026,0.0007 0.0313,0.0008 C0.0417,0.0009 0.0521,0.001 0.0625,0.0012 C0.0833,0.0015 0.1042,0.002 0.125,0.0028 C0.1667,0.0044 0.2083,0.0066 0.25,0.0156 C0.2708,0.0201 0.2917,0.0264 0.3125,0.0372 C0.3333,0.0479 0.3542,0.0629 0.375,0.0884 C0.3958,0.1139 0.4167,0.1495 0.4375,0.2102 C0.4583,0.2709 0.4792,0.3556 0.5,0.5 C0.5208,0.6444 0.5417,0.7291 0.5625,0.7898 C0.5833,0.8505 0.6042,0.8861 0.625,0.9116 C0.6458,0.9371 0.6667,0.9521 0.6875,0.9628 C0.7083,0.9736 0.7292,0.9799 0.75,0.9844 C0.7917,0.9934 0.8333,0.9956 0.875,0.9972 C0.8958,0.998 0.9167,0.9985 0.9375,0.9988 C0.9479,0.999 0.9583,0.9991 0.9688,0.9992 C0.974,0.9993 0.9792,0.9993 0.9844,0.9994 C0.987,0.9994 0.9896,0.9994 0.9922,0.9995 C0.9935,0.9995 0.9948,0.9995 0.9961,0.9995 C0.9967,0.9995 0.9974,0.9995 0.998,0.9995 C0.9984,0.9995 0.9987,0.9995 0.999,0.9995 C0.9992,0.9995 0.9993,0.9995 0.9995,0.9995 C0.9996,0.9995 0.9997,0.9995 0.9998,0.9995 C0.9998,0.9995 0.9998,0.9995 0.9999,0.9995 C0.9999,0.9995 0.9999,0.9995 0.9999,0.9995 C1,0.9995 1,0.9837 1,1

Related easings

See how Expo 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