MeasingsSee, tune and export easings

Elastic light out-in ease

Elastic light out-in is an elastic curve that swings around its target like a rubber band before it comes to rest. The out-in variant is fast at both ends and slows down in the middle, mostly useful as an effect. Amplitude 1, period 1.2. 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("elasticLightOutIn", "M0,0 C0.0208,0.1444 0.0417,0.2571 0.0625,0.3332 C0.0833,0.4093 0.1042,0.4519 0.125,0.4771 C0.1458,0.5024 0.1667,0.5108 0.1875,0.5142 C0.2083,0.5176 0.2292,0.5157 0.25,0.5135 C0.2917,0.5091 0.3333,0.5039 0.375,0.502 C0.3958,0.501 0.4167,0.5004 0.4375,0.5002 C0.4479,0.5 0.4583,0.4999 0.4688,0.4999 C0.474,0.4998 0.4792,0.4998 0.4844,0.4998 C0.487,0.4998 0.4896,0.4998 0.4922,0.4998 C0.4935,0.4998 0.4948,0.4998 0.4961,0.4998 C0.4967,0.4998 0.4974,0.4998 0.498,0.4998 C0.4984,0.4998 0.4987,0.4998 0.499,0.4998 C0.4992,0.4998 0.4993,0.4998 0.4995,0.4998 C0.4996,0.4998 0.4997,0.4998 0.4998,0.4998 C0.4998,0.4998 0.4998,0.4998 0.4999,0.4998 C0.4999,0.4998 0.4999,0.4998 0.4999,0.4998 C0.5,0.4998 0.5,0.4919 0.5,0.5 C0.5,0.5081 0.5,0.5002 0.5001,0.5002 C0.5001,0.5002 0.5001,0.5002 0.5001,0.5002 C0.5002,0.5002 0.5002,0.5002 0.5002,0.5002 C0.5003,0.5002 0.5004,0.5002 0.5005,0.5002 C0.5007,0.5002 0.5008,0.5002 0.501,0.5002 C0.5013,0.5002 0.5016,0.5002 0.502,0.5002 C0.5026,0.5002 0.5033,0.5002 0.5039,0.5002 C0.5052,0.5002 0.5065,0.5002 0.5078,0.5002 C0.5104,0.5002 0.513,0.5002 0.5156,0.5002 C0.5208,0.5002 0.526,0.5002 0.5313,0.5001 C0.5417,0.5001 0.5521,0.5 0.5625,0.4998 C0.5833,0.4996 0.6042,0.499 0.625,0.498 C0.6667,0.4961 0.7083,0.4909 0.75,0.4865 C0.7708,0.4843 0.7917,0.4824 0.8125,0.4858 C0.8333,0.4892 0.8542,0.4976 0.875,0.5229 C0.8958,0.5481 0.9167,0.5907 0.9375,0.6668 C0.9583,0.7429 0.9792,0.8556 1,1");

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

CSS linear()

transition-timing-function: linear(0, 0.0541 0.8%, 0.1051 1.6%, 0.1528 2.4%, 0.1934 3.13%, 0.2311 3.87%, 0.2688 4.67%, 0.303 5.47%, 0.3338 6.27%, 0.3614 7.07%, 0.3858 7.87%, 0.4091 8.73%, 0.4292 9.6%, 0.4621 11.4%, 0.4863 13.33%, 0.4996 14.93%, 0.5086 16.67%, 0.514 18.6%, 0.516 20.87%, 0.5017 38.13%, 0.4975 63.53%, 0.4841 78.2%, 0.4868 81.8%, 0.4979 84.67%, 0.5069 85.93%, 0.5179 87.07%, 0.5311 88.13%, 0.5476 89.2%, 0.5666 90.2%, 0.5876 91.13%, 0.6123 92.07%, 0.6408 93%, 0.6711 93.87%, 0.7052 94.73%, 0.7434 95.6%, 0.7856 96.47%, 0.8321 97.33%, 0.8827 98.2%, 0.9372 99.07%, 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.0541_0.8%,0.1051_1.6%,0.1528_2.4%,0.1934_3.13%,0.2311_3.87%,0.2688_4.67%,0.303_5.47%,0.3338_6.27%,0.3614_7.07%,0.3858_7.87%,0.4091_8.73%,0.4292_9.6%,0.4621_11.4%,0.4863_13.33%,0.4996_14.93%,0.5086_16.67%,0.514_18.6%,0.516_20.87%,0.5017_38.13%,0.4975_63.53%,0.4841_78.2%,0.4868_81.8%,0.4979_84.67%,0.5069_85.93%,0.5179_87.07%,0.5311_88.13%,0.5476_89.2%,0.5666_90.2%,0.5876_91.13%,0.6123_92.07%,0.6408_93%,0.6711_93.87%,0.7052_94.73%,0.7434_95.6%,0.7856_96.47%,0.8321_97.33%,0.8827_98.2%,0.9372_99.07%,1)]

Webflow

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

M0,0 C0.0208,0.1444 0.0417,0.2571 0.0625,0.3332 C0.0833,0.4093 0.1042,0.4519 0.125,0.4771 C0.1458,0.5024 0.1667,0.5108 0.1875,0.5142 C0.2083,0.5176 0.2292,0.5157 0.25,0.5135 C0.2917,0.5091 0.3333,0.5039 0.375,0.502 C0.3958,0.501 0.4167,0.5004 0.4375,0.5002 C0.4479,0.5 0.4583,0.4999 0.4688,0.4999 C0.474,0.4998 0.4792,0.4998 0.4844,0.4998 C0.487,0.4998 0.4896,0.4998 0.4922,0.4998 C0.4935,0.4998 0.4948,0.4998 0.4961,0.4998 C0.4967,0.4998 0.4974,0.4998 0.498,0.4998 C0.4984,0.4998 0.4987,0.4998 0.499,0.4998 C0.4992,0.4998 0.4993,0.4998 0.4995,0.4998 C0.4996,0.4998 0.4997,0.4998 0.4998,0.4998 C0.4998,0.4998 0.4998,0.4998 0.4999,0.4998 C0.4999,0.4998 0.4999,0.4998 0.4999,0.4998 C0.5,0.4998 0.5,0.4919 0.5,0.5 C0.5,0.5081 0.5,0.5002 0.5001,0.5002 C0.5001,0.5002 0.5001,0.5002 0.5001,0.5002 C0.5002,0.5002 0.5002,0.5002 0.5002,0.5002 C0.5003,0.5002 0.5004,0.5002 0.5005,0.5002 C0.5007,0.5002 0.5008,0.5002 0.501,0.5002 C0.5013,0.5002 0.5016,0.5002 0.502,0.5002 C0.5026,0.5002 0.5033,0.5002 0.5039,0.5002 C0.5052,0.5002 0.5065,0.5002 0.5078,0.5002 C0.5104,0.5002 0.513,0.5002 0.5156,0.5002 C0.5208,0.5002 0.526,0.5002 0.5313,0.5001 C0.5417,0.5001 0.5521,0.5 0.5625,0.4998 C0.5833,0.4996 0.6042,0.499 0.625,0.498 C0.6667,0.4961 0.7083,0.4909 0.75,0.4865 C0.7708,0.4843 0.7917,0.4824 0.8125,0.4858 C0.8333,0.4892 0.8542,0.4976 0.875,0.5229 C0.8958,0.5481 0.9167,0.5907 0.9375,0.6668 C0.9583,0.7429 0.9792,0.8556 1,1

Related easings

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

Browse all 91 easings in Measings