MeasingsSee, tune and export easings

bounce.inOut ease

Also known as Bounce in-out, easeInOutBounce.

Bounce in-out is a bounce curve that hits its target and bounces off it a few times, like a dropped ball. The in-out variant is slow at both ends and fastest in the middle, good for moving something between two positions on screen. It is identical to GSAP's built-in "bounce.inOut" 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: "bounce.inOut" });

GSAP CustomEase

gsap.registerPlugin(CustomEase);
CustomEase.create("bounceInOut", "M0,0 C0.0104,0.0072 0.0208,0.0094 0.0313,0.0067 C0.0339,0.006 0.0365,0.0051 0.0391,0.0038 C0.0417,0.0025 0.0443,-0.0015 0.0469,0.0019 C0.0521,0.0089 0.0573,0.0146 0.0625,0.019 C0.0833,0.0369 0.1042,0.0352 0.125,0.0137 C0.1276,0.011 0.1302,0.008 0.1328,0.0047 C0.1335,0.0039 0.1341,0.003 0.1348,0.0022 C0.1354,0.0013 0.1361,-0.0008 0.1367,0.001 C0.138,0.0045 0.1393,0.008 0.1406,0.0114 C0.1458,0.0251 0.151,0.0375 0.1563,0.0487 C0.1667,0.0711 0.1771,0.0885 0.1875,0.1011 C0.2083,0.1261 0.2292,0.1315 0.25,0.1172 C0.2708,0.1029 0.2917,0.0688 0.3125,0.0151 C0.3138,0.0118 0.3151,0.0083 0.3164,0.0048 C0.3167,0.004 0.3171,0.0031 0.3174,0.0022 C0.3177,0.0013 0.318,-0.0008 0.3184,0.001 C0.319,0.0046 0.3197,0.0081 0.3203,0.0117 C0.3229,0.0258 0.3255,0.0397 0.3281,0.0532 C0.3333,0.0803 0.3385,0.1061 0.3438,0.1307 C0.3542,0.18 0.3646,0.2243 0.375,0.2637 C0.4167,0.4212 0.4583,0.5 0.5,0.5 C0.5417,0.5 0.5833,0.5788 0.625,0.7363 C0.6354,0.7757 0.6458,0.82 0.6563,0.8693 C0.6615,0.8939 0.6667,0.9197 0.6719,0.9468 C0.6745,0.9603 0.6771,0.9742 0.6797,0.9883 C0.6803,0.9919 0.681,0.9954 0.6816,0.999 C0.682,1.0008 0.6823,0.9987 0.6826,0.9978 C0.6829,0.9969 0.6833,0.996 0.6836,0.9952 C0.6849,0.9917 0.6862,0.9882 0.6875,0.9849 C0.7083,0.9312 0.7292,0.8971 0.75,0.8828 C0.7708,0.8685 0.7917,0.8739 0.8125,0.8989 C0.8229,0.9115 0.8333,0.9289 0.8438,0.9513 C0.849,0.9625 0.8542,0.9749 0.8594,0.9886 C0.8607,0.992 0.862,0.9955 0.8633,0.999 C0.8639,1.0008 0.8646,0.9987 0.8652,0.9978 C0.8659,0.997 0.8665,0.9961 0.8672,0.9953 C0.8698,0.992 0.8724,0.989 0.875,0.9863 C0.8958,0.9648 0.9167,0.9631 0.9375,0.981 C0.9427,0.9854 0.9479,0.9911 0.9531,0.9981 C0.9557,1.0015 0.9583,0.9975 0.9609,0.9962 C0.9635,0.9949 0.9661,0.994 0.9688,0.9933 C0.9792,0.9906 0.9896,0.9928 1,1");

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

CSS linear()

transition-timing-function: linear(0, 0.0058 1.13%, 0.0078 2.27%, 0.0059 3.4%, 0.0001 4.53%, 0.0142 5.73%, 0.0233 6.8%, 0.0292 7.93%, 0.0312 9.07%, 0.0296 10.13%, 0.0241 11.27%, 0.016 12.27%, 0.0008 13.67%, 0.03 14.8%, 0.0552 15.93%, 0.0765 17.07%, 0.094 18.2%, 0.1076 19.33%, 0.1173 20.47%, 0.1231 21.6%, 0.125 22.73%, 0.123 23.87%, 0.1172 25%, 0.1075 26.13%, 0.0938 27.27%, 0.0763 28.4%, 0.0549 29.53%, 0.0297 30.67%, 0.0005 31.8%, 0.1224 34.2%, 0.1717 35.27%, 0.2202 36.4%, 0.2649 37.53%, 0.3057 38.67%, 0.3426 39.8%, 0.3757 40.93%, 0.4064 42.13%, 0.4328 43.33%, 0.4548 44.53%, 0.4733 45.8%, 0.4864 47%, 0.4947 48.13%, 0.499 49.2%, 0.5027 51.33%, 0.5155 53.2%, 0.5275 54.27%, 0.5441 55.4%, 0.5632 56.47%, 0.5858 57.53%, 0.6171 58.8%, 0.6553 60.13%, 0.6989 61.47%, 0.7478 62.8%, 0.7993 64.07%, 0.8587 65.4%, 0.9168 66.6%, 0.9995 68.2%, 0.9703 69.33%, 0.9451 70.47%, 0.9237 71.6%, 0.9062 72.73%, 0.8925 73.87%, 0.8828 75%, 0.877 76.13%, 0.875 77.27%, 0.8769 78.4%, 0.8827 79.53%, 0.8924 80.67%, 0.906 81.8%, 0.9235 82.93%, 0.9448 84.07%, 0.97 85.2%, 0.9992 86.33%, 0.984 87.73%, 0.9759 88.73%, 0.9706 89.8%, 0.9688 90.93%, 0.9708 92.07%, 0.9767 93.2%, 0.9858 94.27%, 0.9999 95.47%, 0.9941 96.6%, 0.9922 97.73%, 0.9942 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.0058_1.13%,0.0078_2.27%,0.0059_3.4%,0.0001_4.53%,0.0142_5.73%,0.0233_6.8%,0.0292_7.93%,0.0312_9.07%,0.0296_10.13%,0.0241_11.27%,0.016_12.27%,0.0008_13.67%,0.03_14.8%,0.0552_15.93%,0.0765_17.07%,0.094_18.2%,0.1076_19.33%,0.1173_20.47%,0.1231_21.6%,0.125_22.73%,0.123_23.87%,0.1172_25%,0.1075_26.13%,0.0938_27.27%,0.0763_28.4%,0.0549_29.53%,0.0297_30.67%,0.0005_31.8%,0.1224_34.2%,0.1717_35.27%,0.2202_36.4%,0.2649_37.53%,0.3057_38.67%,0.3426_39.8%,0.3757_40.93%,0.4064_42.13%,0.4328_43.33%,0.4548_44.53%,0.4733_45.8%,0.4864_47%,0.4947_48.13%,0.499_49.2%,0.5027_51.33%,0.5155_53.2%,0.5275_54.27%,0.5441_55.4%,0.5632_56.47%,0.5858_57.53%,0.6171_58.8%,0.6553_60.13%,0.6989_61.47%,0.7478_62.8%,0.7993_64.07%,0.8587_65.4%,0.9168_66.6%,0.9995_68.2%,0.9703_69.33%,0.9451_70.47%,0.9237_71.6%,0.9062_72.73%,0.8925_73.87%,0.8828_75%,0.877_76.13%,0.875_77.27%,0.8769_78.4%,0.8827_79.53%,0.8924_80.67%,0.906_81.8%,0.9235_82.93%,0.9448_84.07%,0.97_85.2%,0.9992_86.33%,0.984_87.73%,0.9759_88.73%,0.9706_89.8%,0.9688_90.93%,0.9708_92.07%,0.9767_93.2%,0.9858_94.27%,0.9999_95.47%,0.9941_96.6%,0.9922_97.73%,0.9942_98.87%,1)]

Webflow

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

M0,0 C0.0104,0.0072 0.0208,0.0094 0.0313,0.0067 C0.0339,0.006 0.0365,0.0051 0.0391,0.0038 C0.0417,0.0025 0.0443,-0.0015 0.0469,0.0019 C0.0521,0.0089 0.0573,0.0146 0.0625,0.019 C0.0833,0.0369 0.1042,0.0352 0.125,0.0137 C0.1276,0.011 0.1302,0.008 0.1328,0.0047 C0.1335,0.0039 0.1341,0.003 0.1348,0.0022 C0.1354,0.0013 0.1361,-0.0008 0.1367,0.001 C0.138,0.0045 0.1393,0.008 0.1406,0.0114 C0.1458,0.0251 0.151,0.0375 0.1563,0.0487 C0.1667,0.0711 0.1771,0.0885 0.1875,0.1011 C0.2083,0.1261 0.2292,0.1315 0.25,0.1172 C0.2708,0.1029 0.2917,0.0688 0.3125,0.0151 C0.3138,0.0118 0.3151,0.0083 0.3164,0.0048 C0.3167,0.004 0.3171,0.0031 0.3174,0.0022 C0.3177,0.0013 0.318,-0.0008 0.3184,0.001 C0.319,0.0046 0.3197,0.0081 0.3203,0.0117 C0.3229,0.0258 0.3255,0.0397 0.3281,0.0532 C0.3333,0.0803 0.3385,0.1061 0.3438,0.1307 C0.3542,0.18 0.3646,0.2243 0.375,0.2637 C0.4167,0.4212 0.4583,0.5 0.5,0.5 C0.5417,0.5 0.5833,0.5788 0.625,0.7363 C0.6354,0.7757 0.6458,0.82 0.6563,0.8693 C0.6615,0.8939 0.6667,0.9197 0.6719,0.9468 C0.6745,0.9603 0.6771,0.9742 0.6797,0.9883 C0.6803,0.9919 0.681,0.9954 0.6816,0.999 C0.682,1.0008 0.6823,0.9987 0.6826,0.9978 C0.6829,0.9969 0.6833,0.996 0.6836,0.9952 C0.6849,0.9917 0.6862,0.9882 0.6875,0.9849 C0.7083,0.9312 0.7292,0.8971 0.75,0.8828 C0.7708,0.8685 0.7917,0.8739 0.8125,0.8989 C0.8229,0.9115 0.8333,0.9289 0.8438,0.9513 C0.849,0.9625 0.8542,0.9749 0.8594,0.9886 C0.8607,0.992 0.862,0.9955 0.8633,0.999 C0.8639,1.0008 0.8646,0.9987 0.8652,0.9978 C0.8659,0.997 0.8665,0.9961 0.8672,0.9953 C0.8698,0.992 0.8724,0.989 0.875,0.9863 C0.8958,0.9648 0.9167,0.9631 0.9375,0.981 C0.9427,0.9854 0.9479,0.9911 0.9531,0.9981 C0.9557,1.0015 0.9583,0.9975 0.9609,0.9962 C0.9635,0.9949 0.9661,0.994 0.9688,0.9933 C0.9792,0.9906 0.9896,0.9928 1,1

Related easings

See how bounce.inOut measures up against all 91 easings in the easing comparison: progress over time, overshoot and peak speed.

Browse all 91 easings in Measings