Quart out-in ease
Also known as Quart out-in.
Quart out-in is a power curve (progress raised to a fixed exponent): the higher the exponent, the stronger the acceleration. The out-in variant is fast at both ends and slows down in the middle, mostly useful as an effect. The exponent is 4. 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("quartOutIn", "M0,0 C0.0417,0.1667 0.0833,0.2715 0.125,0.3418 C0.1667,0.4121 0.2083,0.4479 0.25,0.4688 C0.2917,0.4896 0.3333,0.4954 0.375,0.498 C0.4167,0.5007 0.4583,0.5 0.5,0.5 C0.5417,0.5 0.5833,0.4993 0.625,0.502 C0.6667,0.5046 0.7083,0.5104 0.75,0.5313 C0.7917,0.5521 0.8333,0.5879 0.875,0.6582 C0.9167,0.7285 0.9583,0.8333 1,1");
gsap.to(".box", { x: 200, duration: 0.6, ease: "quartOutIn" });
CSS linear()
transition-timing-function: linear(0, 0.0777 2.07%, 0.1459 4.13%, 0.2091 6.33%, 0.265 8.6%, 0.3137 10.93%, 0.3554 13.33%, 0.3914 15.87%, 0.4216 18.53%, 0.446 21.33%, 0.4653 24.33%, 0.4796 27.53%, 0.4899 31.13%, 0.4956 34.67%, 0.4988 38.87%, 0.5005 59%, 0.5051 65.87%, 0.5113 69.4%, 0.5206 72.53%, 0.5336 75.47%, 0.5501 78.13%, 0.5778 81.4%, 0.6129 84.47%, 0.6554 87.33%, 0.7062 90.07%, 0.7651 92.67%, 0.8339 95.2%, 0.873 96.47%, 0.913 97.67%, 0.9562 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.0777_2.07%,0.1459_4.13%,0.2091_6.33%,0.265_8.6%,0.3137_10.93%,0.3554_13.33%,0.3914_15.87%,0.4216_18.53%,0.446_21.33%,0.4653_24.33%,0.4796_27.53%,0.4899_31.13%,0.4956_34.67%,0.4988_38.87%,0.5005_59%,0.5051_65.87%,0.5113_69.4%,0.5206_72.53%,0.5336_75.47%,0.5501_78.13%,0.5778_81.4%,0.6129_84.47%,0.6554_87.33%,0.7062_90.07%,0.7651_92.67%,0.8339_95.2%,0.873_96.47%,0.913_97.67%,0.9562_98.87%,1)]
Webflow
In Interactions, choose a custom ease and paste this path:
M0,0 C0.0417,0.1667 0.0833,0.2715 0.125,0.3418 C0.1667,0.4121 0.2083,0.4479 0.25,0.4688 C0.2917,0.4896 0.3333,0.4954 0.375,0.498 C0.4167,0.5007 0.4583,0.5 0.5,0.5 C0.5417,0.5 0.5833,0.4993 0.625,0.502 C0.6667,0.5046 0.7083,0.5104 0.75,0.5313 C0.7917,0.5521 0.8333,0.5879 0.875,0.6582 C0.9167,0.7285 0.9583,0.8333 1,1
Related easings
- Power in
- Power out
- Power in-out
- Power out-in
- power1.in
- power1.out
- power1.inOut
- Cubic out-in
- Sine out-in
- Expo out-in
- Circ out-in
- Back out-in
See how Quart out-in measures up against all 91 easings in the easing comparison: progress over time, overshoot and peak speed.
