MeasingsSee, tune and export easings

Bounce out-in ease

Bounce out-in is a bounce curve that hits its target and bounces off it a few times, like a dropped ball. The out-in variant is fast at both ends and slows down in the middle, mostly useful as an effect. 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("bounceOutIn", "M0,0 C0.0417,0 0.0833,0.0788 0.125,0.2363 C0.1354,0.2757 0.1458,0.32 0.1563,0.3693 C0.1615,0.3939 0.1667,0.4197 0.1719,0.4468 C0.1745,0.4603 0.1771,0.4742 0.1797,0.4883 C0.1803,0.4919 0.181,0.4954 0.1816,0.499 C0.182,0.5008 0.1823,0.4987 0.1826,0.4978 C0.1829,0.4969 0.1833,0.496 0.1836,0.4952 C0.1849,0.4917 0.1862,0.4882 0.1875,0.4849 C0.2083,0.4312 0.2292,0.3971 0.25,0.3828 C0.2708,0.3685 0.2917,0.3739 0.3125,0.3989 C0.3229,0.4115 0.3333,0.4289 0.3438,0.4513 C0.349,0.4625 0.3542,0.4749 0.3594,0.4886 C0.3607,0.492 0.362,0.4955 0.3633,0.499 C0.3639,0.5008 0.3646,0.4987 0.3652,0.4978 C0.3659,0.497 0.3665,0.4961 0.3672,0.4953 C0.3698,0.492 0.3724,0.489 0.375,0.4863 C0.3958,0.4648 0.4167,0.4631 0.4375,0.481 C0.4427,0.4854 0.4479,0.4911 0.4531,0.4981 C0.4557,0.5015 0.4583,0.4975 0.4609,0.4962 C0.4635,0.4949 0.4661,0.494 0.4688,0.4933 C0.4792,0.4906 0.4896,0.4928 0.5,0.5 C0.5104,0.5072 0.5208,0.5094 0.5313,0.5067 C0.5339,0.506 0.5365,0.5051 0.5391,0.5038 C0.5417,0.5025 0.5443,0.4985 0.5469,0.5019 C0.5521,0.5089 0.5573,0.5146 0.5625,0.519 C0.5833,0.5369 0.6042,0.5352 0.625,0.5137 C0.6276,0.511 0.6302,0.508 0.6328,0.5047 C0.6335,0.5039 0.6341,0.503 0.6348,0.5022 C0.6354,0.5013 0.6361,0.4992 0.6367,0.501 C0.638,0.5045 0.6393,0.508 0.6406,0.5114 C0.6458,0.5251 0.651,0.5375 0.6563,0.5487 C0.6667,0.5711 0.6771,0.5885 0.6875,0.6011 C0.7083,0.6261 0.7292,0.6315 0.75,0.6172 C0.7708,0.6029 0.7917,0.5688 0.8125,0.5151 C0.8138,0.5118 0.8151,0.5083 0.8164,0.5048 C0.8167,0.504 0.8171,0.5031 0.8174,0.5022 C0.8177,0.5013 0.818,0.4992 0.8184,0.501 C0.819,0.5046 0.8197,0.5081 0.8203,0.5117 C0.8229,0.5258 0.8255,0.5397 0.8281,0.5532 C0.8333,0.5803 0.8385,0.6061 0.8438,0.6307 C0.8542,0.68 0.8646,0.7243 0.875,0.7637 C0.9167,0.9212 0.9583,1 1,1");

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

CSS linear()

transition-timing-function: linear(0, 0.0019 1.13%, 0.0078 2.27%, 0.0175 3.4%, 0.0311 4.53%, 0.0486 5.67%, 0.0699 6.8%, 0.0952 7.93%, 0.1243 9.07%, 0.1574 10.2%, 0.1943 11.33%, 0.2351 12.47%, 0.2798 13.6%, 0.3283 14.73%, 0.3776 15.8%, 0.4995 18.2%, 0.4703 19.33%, 0.4451 20.47%, 0.4237 21.6%, 0.4062 22.73%, 0.3925 23.87%, 0.3828 25%, 0.377 26.13%, 0.375 27.27%, 0.3769 28.4%, 0.3827 29.53%, 0.3924 30.67%, 0.406 31.8%, 0.4223 32.87%, 0.4435 34%, 0.4995 36.4%, 0.486 37.53%, 0.4764 38.67%, 0.4706 39.8%, 0.4688 40.93%, 0.4708 42.07%, 0.4767 43.2%, 0.4858 44.27%, 0.4999 45.47%, 0.4941 46.6%, 0.4922 47.73%, 0.4944 48.93%, 0.5045 50.8%, 0.5076 51.87%, 0.5065 53.2%, 0.5001 54.53%, 0.5219 56.6%, 0.5279 57.6%, 0.5309 58.6%, 0.5305 59.8%, 0.5253 61.07%, 0.5166 62.2%, 0.5008 63.67%, 0.5267 64.67%, 0.551 65.73%, 0.5707 66.73%, 0.5883 67.8%, 0.6017 68.8%, 0.6126 69.87%, 0.6198 70.87%, 0.624 71.93%, 0.6247 73.2%, 0.6208 74.4%, 0.6125 75.6%, 0.5991 76.87%, 0.5819 78.07%, 0.559 79.33%, 0.5328 80.53%, 0.5005 81.8%, 0.6224 84.2%, 0.6717 85.27%, 0.7202 86.4%, 0.7649 87.53%, 0.8057 88.67%, 0.8426 89.8%, 0.8757 90.93%, 0.9048 92.07%, 0.9301 93.2%, 0.9514 94.33%, 0.9689 95.47%, 0.9825 96.6%, 0.9922 97.73%, 0.9981 98.87%, 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_1.13%,0.0078_2.27%,0.0175_3.4%,0.0311_4.53%,0.0486_5.67%,0.0699_6.8%,0.0952_7.93%,0.1243_9.07%,0.1574_10.2%,0.1943_11.33%,0.2351_12.47%,0.2798_13.6%,0.3283_14.73%,0.3776_15.8%,0.4995_18.2%,0.4703_19.33%,0.4451_20.47%,0.4237_21.6%,0.4062_22.73%,0.3925_23.87%,0.3828_25%,0.377_26.13%,0.375_27.27%,0.3769_28.4%,0.3827_29.53%,0.3924_30.67%,0.406_31.8%,0.4223_32.87%,0.4435_34%,0.4995_36.4%,0.486_37.53%,0.4764_38.67%,0.4706_39.8%,0.4688_40.93%,0.4708_42.07%,0.4767_43.2%,0.4858_44.27%,0.4999_45.47%,0.4941_46.6%,0.4922_47.73%,0.4944_48.93%,0.5045_50.8%,0.5076_51.87%,0.5065_53.2%,0.5001_54.53%,0.5219_56.6%,0.5279_57.6%,0.5309_58.6%,0.5305_59.8%,0.5253_61.07%,0.5166_62.2%,0.5008_63.67%,0.5267_64.67%,0.551_65.73%,0.5707_66.73%,0.5883_67.8%,0.6017_68.8%,0.6126_69.87%,0.6198_70.87%,0.624_71.93%,0.6247_73.2%,0.6208_74.4%,0.6125_75.6%,0.5991_76.87%,0.5819_78.07%,0.559_79.33%,0.5328_80.53%,0.5005_81.8%,0.6224_84.2%,0.6717_85.27%,0.7202_86.4%,0.7649_87.53%,0.8057_88.67%,0.8426_89.8%,0.8757_90.93%,0.9048_92.07%,0.9301_93.2%,0.9514_94.33%,0.9689_95.47%,0.9825_96.6%,0.9922_97.73%,0.9981_98.87%,1)]

Webflow

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

M0,0 C0.0417,0 0.0833,0.0788 0.125,0.2363 C0.1354,0.2757 0.1458,0.32 0.1563,0.3693 C0.1615,0.3939 0.1667,0.4197 0.1719,0.4468 C0.1745,0.4603 0.1771,0.4742 0.1797,0.4883 C0.1803,0.4919 0.181,0.4954 0.1816,0.499 C0.182,0.5008 0.1823,0.4987 0.1826,0.4978 C0.1829,0.4969 0.1833,0.496 0.1836,0.4952 C0.1849,0.4917 0.1862,0.4882 0.1875,0.4849 C0.2083,0.4312 0.2292,0.3971 0.25,0.3828 C0.2708,0.3685 0.2917,0.3739 0.3125,0.3989 C0.3229,0.4115 0.3333,0.4289 0.3438,0.4513 C0.349,0.4625 0.3542,0.4749 0.3594,0.4886 C0.3607,0.492 0.362,0.4955 0.3633,0.499 C0.3639,0.5008 0.3646,0.4987 0.3652,0.4978 C0.3659,0.497 0.3665,0.4961 0.3672,0.4953 C0.3698,0.492 0.3724,0.489 0.375,0.4863 C0.3958,0.4648 0.4167,0.4631 0.4375,0.481 C0.4427,0.4854 0.4479,0.4911 0.4531,0.4981 C0.4557,0.5015 0.4583,0.4975 0.4609,0.4962 C0.4635,0.4949 0.4661,0.494 0.4688,0.4933 C0.4792,0.4906 0.4896,0.4928 0.5,0.5 C0.5104,0.5072 0.5208,0.5094 0.5313,0.5067 C0.5339,0.506 0.5365,0.5051 0.5391,0.5038 C0.5417,0.5025 0.5443,0.4985 0.5469,0.5019 C0.5521,0.5089 0.5573,0.5146 0.5625,0.519 C0.5833,0.5369 0.6042,0.5352 0.625,0.5137 C0.6276,0.511 0.6302,0.508 0.6328,0.5047 C0.6335,0.5039 0.6341,0.503 0.6348,0.5022 C0.6354,0.5013 0.6361,0.4992 0.6367,0.501 C0.638,0.5045 0.6393,0.508 0.6406,0.5114 C0.6458,0.5251 0.651,0.5375 0.6563,0.5487 C0.6667,0.5711 0.6771,0.5885 0.6875,0.6011 C0.7083,0.6261 0.7292,0.6315 0.75,0.6172 C0.7708,0.6029 0.7917,0.5688 0.8125,0.5151 C0.8138,0.5118 0.8151,0.5083 0.8164,0.5048 C0.8167,0.504 0.8171,0.5031 0.8174,0.5022 C0.8177,0.5013 0.818,0.4992 0.8184,0.501 C0.819,0.5046 0.8197,0.5081 0.8203,0.5117 C0.8229,0.5258 0.8255,0.5397 0.8281,0.5532 C0.8333,0.5803 0.8385,0.6061 0.8438,0.6307 C0.8542,0.68 0.8646,0.7243 0.875,0.7637 C0.9167,0.9212 0.9583,1 1,1

Related easings

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