Cubic out-in ease
Also known as Cubic out-in.
Cubic 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 3. 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("cubicOutIn", "M0,0 C0.0833,0.25 0.1667,0.375 0.25,0.4375 C0.3333,0.5 0.4167,0.5 0.5,0.5 C0.5833,0.5 0.6667,0.5 0.75,0.5625 C0.8333,0.625 0.9167,0.75 1,1");
gsap.to(".box", { x: 200, duration: 0.6, ease: "cubicOutIn" });
CSS linear()
transition-timing-function: linear(0, 0.0704 2.47%, 0.1339 4.93%, 0.1922 7.47%, 0.2453 10.07%, 0.293 12.73%, 0.3353 15.47%, 0.3722 18.27%, 0.4038 21.13%, 0.4313 24.2%, 0.4538 27.4%, 0.4714 30.73%, 0.4846 34.33%, 0.4927 37.8%, 0.4977 41.67%, 0.5011 56.47%, 0.5081 62.67%, 0.5166 66.07%, 0.5283 69.2%, 0.5438 72.2%, 0.563 75.07%, 0.5929 78.53%, 0.6294 81.87%, 0.6725 85.07%, 0.723 88.2%, 0.7811 91.27%, 0.8454 94.2%, 0.9188 97.13%, 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.0704_2.47%,0.1339_4.93%,0.1922_7.47%,0.2453_10.07%,0.293_12.73%,0.3353_15.47%,0.3722_18.27%,0.4038_21.13%,0.4313_24.2%,0.4538_27.4%,0.4714_30.73%,0.4846_34.33%,0.4927_37.8%,0.4977_41.67%,0.5011_56.47%,0.5081_62.67%,0.5166_66.07%,0.5283_69.2%,0.5438_72.2%,0.563_75.07%,0.5929_78.53%,0.6294_81.87%,0.6725_85.07%,0.723_88.2%,0.7811_91.27%,0.8454_94.2%,0.9188_97.13%,1)]
Webflow
In Interactions, choose a custom ease and paste this path:
M0,0 C0.0833,0.25 0.1667,0.375 0.25,0.4375 C0.3333,0.5 0.4167,0.5 0.5,0.5 C0.5833,0.5 0.6667,0.5 0.75,0.5625 C0.8333,0.625 0.9167,0.75 1,1
Related easings
- Power in
- Power out
- Power in-out
- Power out-in
- power1.in
- power1.out
- power1.inOut
- Sine out-in
- Expo out-in
- Circ out-in
- Back out-in
- Elastic out-in
See how Cubic out-in measures up against all 91 easings in the easing comparison: progress over time, overshoot and peak speed.
