elastic.in(1, 0.3) ease
Also known as Elastic in, easeInElastic.
Elastic 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 1, period 0.3. It is identical to GSAP's built-in "elastic.in(1, 0.3)" 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(1, 0.3)" });
GSAP CustomEase
gsap.registerPlugin(CustomEase);
CustomEase.create("elasticDefaultIn", "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.0004 0.0033,-0.0004 0.0039,-0.0004 C0.0052,-0.0004 0.0065,-0.0004 0.0078,-0.0004 C0.0104,-0.0003 0.013,-0.0003 0.0156,-0.0002 C0.0208,-0.0001 0.026,0 0.0313,0.0002 C0.0417,0.0004 0.0521,0.0008 0.0625,0.0011 C0.0833,0.0017 0.1042,0.0022 0.125,0.002 C0.1667,0.0016 0.2083,-0.0039 0.25,-0.0055 C0.2708,-0.0063 0.2917,-0.0055 0.3125,-0.0022 C0.3333,0.0011 0.3542,0.0069 0.375,0.0114 C0.3958,0.0159 0.4167,0.0185 0.4375,0.0143 C0.4583,0.0101 0.4792,-0.0016 0.5,-0.0156 C0.5208,-0.0297 0.5417,-0.0453 0.5625,-0.0466 C0.5833,-0.0478 0.6042,-0.0324 0.625,0 C0.6458,0.0324 0.6667,0.0818 0.6875,0.1107 C0.6979,0.1252 0.7083,0.1339 0.7188,0.1315 C0.7292,0.1291 0.7396,0.1154 0.75,0.0884 C0.7604,0.0614 0.7708,0.0209 0.7813,-0.0287 C0.7917,-0.0782 0.8021,-0.1368 0.8125,-0.1928 C0.8333,-0.3047 0.8542,-0.4032 0.875,-0.3641 C0.8854,-0.3445 0.8958,-0.2906 0.9063,-0.1998 C0.9167,-0.109 0.9271,0.0191 0.9375,0.1678 C0.9479,0.3166 0.9583,0.4858 0.9688,0.6388 C0.9792,0.7919 0.9896,0.9278 1,1");
gsap.to(".box", { x: 200, duration: 0.6, ease: "elasticDefaultIn" });
CSS linear()
transition-timing-function: linear(0, 0.0019 13.33%, -0.0056 27.8%, -0.0012 31.87%, 0.0147 39.27%, 0.0161 42.47%, 0.0123 44.6%, 0.004 46.73%, -0.0415 54.27%, -0.0461 55.8%, -0.046 57.27%, -0.0423 58.4%, -0.0357 59.47%, -0.026 60.53%, -0.0122 61.67%, 0.0195 63.67%, 0.0928 67.6%, 0.1174 69.27%, 0.13 70.73%, 0.1319 71.47%, 0.1307 72.13%, 0.1231 73.13%, 0.1091 74.07%, 0.0884 75%, 0.0585 76%, 0.0185 77.07%, -0.0322 78.2%, -0.0894 79.33%, -0.2425 82.2%, -0.2842 83.07%, -0.3151 83.8%, -0.3446 84.67%, -0.3646 85.53%, -0.3728 86.33%, -0.3704 87.07%, -0.3607 87.67%, -0.3459 88.2%, -0.3219 88.8%, -0.2939 89.33%, -0.2596 89.87%, -0.2189 90.4%, -0.1719 90.93%, -0.1118 91.53%, -0.06 92%, -0.0041 92.47%, 0.0643 93%, 0.1372 93.53%, 0.2828 94.53%, 0.6278 96.8%, 0.7049 97.33%, 0.7779 97.87%, 0.8532 98.47%, 0.9126 99%, 0.9636 99.53%, 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.0019_13.33%,-0.0056_27.8%,-0.0012_31.87%,0.0147_39.27%,0.0161_42.47%,0.0123_44.6%,0.004_46.73%,-0.0415_54.27%,-0.0461_55.8%,-0.046_57.27%,-0.0423_58.4%,-0.0357_59.47%,-0.026_60.53%,-0.0122_61.67%,0.0195_63.67%,0.0928_67.6%,0.1174_69.27%,0.13_70.73%,0.1319_71.47%,0.1307_72.13%,0.1231_73.13%,0.1091_74.07%,0.0884_75%,0.0585_76%,0.0185_77.07%,-0.0322_78.2%,-0.0894_79.33%,-0.2425_82.2%,-0.2842_83.07%,-0.3151_83.8%,-0.3446_84.67%,-0.3646_85.53%,-0.3728_86.33%,-0.3704_87.07%,-0.3607_87.67%,-0.3459_88.2%,-0.3219_88.8%,-0.2939_89.33%,-0.2596_89.87%,-0.2189_90.4%,-0.1719_90.93%,-0.1118_91.53%,-0.06_92%,-0.0041_92.47%,0.0643_93%,0.1372_93.53%,0.2828_94.53%,0.6278_96.8%,0.7049_97.33%,0.7779_97.87%,0.8532_98.47%,0.9126_99%,0.9636_99.53%,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.0004 0.0033,-0.0004 0.0039,-0.0004 C0.0052,-0.0004 0.0065,-0.0004 0.0078,-0.0004 C0.0104,-0.0003 0.013,-0.0003 0.0156,-0.0002 C0.0208,-0.0001 0.026,0 0.0313,0.0002 C0.0417,0.0004 0.0521,0.0008 0.0625,0.0011 C0.0833,0.0017 0.1042,0.0022 0.125,0.002 C0.1667,0.0016 0.2083,-0.0039 0.25,-0.0055 C0.2708,-0.0063 0.2917,-0.0055 0.3125,-0.0022 C0.3333,0.0011 0.3542,0.0069 0.375,0.0114 C0.3958,0.0159 0.4167,0.0185 0.4375,0.0143 C0.4583,0.0101 0.4792,-0.0016 0.5,-0.0156 C0.5208,-0.0297 0.5417,-0.0453 0.5625,-0.0466 C0.5833,-0.0478 0.6042,-0.0324 0.625,0 C0.6458,0.0324 0.6667,0.0818 0.6875,0.1107 C0.6979,0.1252 0.7083,0.1339 0.7188,0.1315 C0.7292,0.1291 0.7396,0.1154 0.75,0.0884 C0.7604,0.0614 0.7708,0.0209 0.7813,-0.0287 C0.7917,-0.0782 0.8021,-0.1368 0.8125,-0.1928 C0.8333,-0.3047 0.8542,-0.4032 0.875,-0.3641 C0.8854,-0.3445 0.8958,-0.2906 0.9063,-0.1998 C0.9167,-0.109 0.9271,0.0191 0.9375,0.1678 C0.9479,0.3166 0.9583,0.4858 0.9688,0.6388 C0.9792,0.7919 0.9896,0.9278 1,1
Related easings
- 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)
- Elastic light out-in
- power2.in
- sine.in
- Expo in
- circ.in
- back.in(1.7)
See how elastic.in(1, 0.3) measures up against all 91 easings in the easing comparison: progress over time, overshoot and peak speed.
