elastic.in(2, 0.5) ease
Also known as Elastic strong in.
Elastic strong in is an elastic curve that swings around its target like a rubber band before it comes to rest. The in variant starts slowly and speeds up, which suits elements leaving the screen. Amplitude 2, period 0.5. It is identical to GSAP's built-in "elastic.in(2, 0.5)" 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: "elastic.in(2, 0.5)" });
GSAP CustomEase
gsap.registerPlugin(CustomEase);
CustomEase.create("elasticStrongIn", "M0,0 C0,0.0326 0,0.001 0.0001,0.001 C0.0001,0.001 0.0001,0.001 0.0001,0.001 C0.0002,0.001 0.0002,0.001 0.0002,0.001 C0.0003,0.001 0.0004,0.001 0.0005,0.001 C0.0007,0.001 0.0008,0.001 0.001,0.001 C0.0013,0.001 0.0016,0.001 0.002,0.001 C0.0026,0.0011 0.0033,0.0011 0.0039,0.0011 C0.0052,0.0011 0.0065,0.0012 0.0078,0.0012 C0.0104,0.0013 0.013,0.0014 0.0156,0.0014 C0.0208,0.0016 0.026,0.0018 0.0313,0.0019 C0.0417,0.0023 0.0521,0.0026 0.0625,0.0029 C0.0833,0.0035 0.1042,0.0041 0.125,0.004 C0.1667,0.004 0.2083,0.0011 0.25,-0.0055 C0.2917,-0.0121 0.3333,-0.0231 0.375,-0.0228 C0.3958,-0.0226 0.4167,-0.0192 0.4375,-0.0105 C0.4583,-0.0018 0.4792,0.0126 0.5,0.0313 C0.5208,0.0499 0.5417,0.0731 0.5625,0.0931 C0.5833,0.1131 0.6042,0.1296 0.625,0.1287 C0.6458,0.1279 0.6667,0.1087 0.6875,0.0593 C0.7083,0.0099 0.7292,-0.0711 0.75,-0.1768 C0.7708,-0.2825 0.7917,-0.4137 0.8125,-0.5267 C0.8333,-0.6397 0.8542,-0.7331 0.875,-0.7282 C0.8854,-0.7258 0.8958,-0.6982 0.9063,-0.6357 C0.9167,-0.5732 0.9271,-0.4754 0.9375,-0.3356 C0.9479,-0.1959 0.9583,-0.014 0.9688,0.2102 C0.9792,0.4344 0.9896,0.7011 1,1");
gsap.to(".box", { x: 200, duration: 0.6, ease: "elasticStrongIn" });
CSS linear()
transition-timing-function: linear(0, 0.0038 9.73%, 0.003 16.93%, -0.0029 23.2%, -0.0214 34.8%, -0.0227 37.87%, -0.02 40.53%, -0.0088 44.13%, 0.0121 47.67%, 0.0386 50.8%, 0.1007 57.07%, 0.1208 59.73%, 0.1271 61.2%, 0.1287 62.53%, 0.1258 63.8%, 0.1183 65%, 0.0992 66.67%, 0.0688 68.33%, 0.0482 69.2%, 0.0261 70%, -0.0269 71.6%, -0.0605 72.47%, -0.0973 73.33%, -0.1405 74.27%, -0.187 75.2%, -0.2842 77%, -0.5276 81.27%, -0.5897 82.47%, -0.6357 83.47%, -0.6625 84.13%, -0.6834 84.73%, -0.7009 85.33%, -0.7132 85.87%, -0.722 86.4%, -0.7272 86.93%, -0.7283 87.47%, -0.7251 88%, -0.7185 88.47%, -0.7098 88.87%, -0.6983 89.27%, -0.6837 89.67%, -0.666 90.07%, -0.645 90.47%, -0.5976 91.2%, -0.5667 91.6%, -0.5382 91.93%, -0.5005 92.33%, -0.4662 92.67%, -0.4214 93.07%, -0.381 93.4%, -0.3289 93.8%, -0.2823 94.13%, -0.2227 94.53%, -0.1698 94.87%, -0.0553 95.53%, 0.0063 95.87%, 0.084 96.27%, 0.152 96.6%, 0.2373 97%, 0.3115 97.33%, 0.4042 97.73%, 0.4845 98.07%, 0.5843 98.47%, 0.7768 99.2%, 0.8868 99.6%, 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.0038_9.73%,0.003_16.93%,-0.0029_23.2%,-0.0214_34.8%,-0.0227_37.87%,-0.02_40.53%,-0.0088_44.13%,0.0121_47.67%,0.0386_50.8%,0.1007_57.07%,0.1208_59.73%,0.1271_61.2%,0.1287_62.53%,0.1258_63.8%,0.1183_65%,0.0992_66.67%,0.0688_68.33%,0.0482_69.2%,0.0261_70%,-0.0269_71.6%,-0.0605_72.47%,-0.0973_73.33%,-0.1405_74.27%,-0.187_75.2%,-0.2842_77%,-0.5276_81.27%,-0.5897_82.47%,-0.6357_83.47%,-0.6625_84.13%,-0.6834_84.73%,-0.7009_85.33%,-0.7132_85.87%,-0.722_86.4%,-0.7272_86.93%,-0.7283_87.47%,-0.7251_88%,-0.7185_88.47%,-0.7098_88.87%,-0.6983_89.27%,-0.6837_89.67%,-0.666_90.07%,-0.645_90.47%,-0.5976_91.2%,-0.5667_91.6%,-0.5382_91.93%,-0.5005_92.33%,-0.4662_92.67%,-0.4214_93.07%,-0.381_93.4%,-0.3289_93.8%,-0.2823_94.13%,-0.2227_94.53%,-0.1698_94.87%,-0.0553_95.53%,0.0063_95.87%,0.084_96.27%,0.152_96.6%,0.2373_97%,0.3115_97.33%,0.4042_97.73%,0.4845_98.07%,0.5843_98.47%,0.7768_99.2%,0.8868_99.6%,1)]
Webflow
In Interactions, choose a custom ease and paste this path:
M0,0 C0,0.0326 0,0.001 0.0001,0.001 C0.0001,0.001 0.0001,0.001 0.0001,0.001 C0.0002,0.001 0.0002,0.001 0.0002,0.001 C0.0003,0.001 0.0004,0.001 0.0005,0.001 C0.0007,0.001 0.0008,0.001 0.001,0.001 C0.0013,0.001 0.0016,0.001 0.002,0.001 C0.0026,0.0011 0.0033,0.0011 0.0039,0.0011 C0.0052,0.0011 0.0065,0.0012 0.0078,0.0012 C0.0104,0.0013 0.013,0.0014 0.0156,0.0014 C0.0208,0.0016 0.026,0.0018 0.0313,0.0019 C0.0417,0.0023 0.0521,0.0026 0.0625,0.0029 C0.0833,0.0035 0.1042,0.0041 0.125,0.004 C0.1667,0.004 0.2083,0.0011 0.25,-0.0055 C0.2917,-0.0121 0.3333,-0.0231 0.375,-0.0228 C0.3958,-0.0226 0.4167,-0.0192 0.4375,-0.0105 C0.4583,-0.0018 0.4792,0.0126 0.5,0.0313 C0.5208,0.0499 0.5417,0.0731 0.5625,0.0931 C0.5833,0.1131 0.6042,0.1296 0.625,0.1287 C0.6458,0.1279 0.6667,0.1087 0.6875,0.0593 C0.7083,0.0099 0.7292,-0.0711 0.75,-0.1768 C0.7708,-0.2825 0.7917,-0.4137 0.8125,-0.5267 C0.8333,-0.6397 0.8542,-0.7331 0.875,-0.7282 C0.8854,-0.7258 0.8958,-0.6982 0.9063,-0.6357 C0.9167,-0.5732 0.9271,-0.4754 0.9375,-0.3356 C0.9479,-0.1959 0.9583,-0.014 0.9688,0.2102 C0.9792,0.4344 0.9896,0.7011 1,1
Related easings
- elastic.in(1, 0.3)
- elastic.out(1, 0.3)
- elastic.inOut(1, 0.3)
- Elastic out-in
- elastic.in(1, 1.2)
- elastic.out(1, 1.2)
- elastic.inOut(1, 1.2)
- power2.in
- sine.in
- Expo in
- circ.in
- back.in(1.7)
See how elastic.in(2, 0.5) measures up against all 91 easings in the easing comparison: progress over time, overshoot and peak speed.
