power1.inOut ease
Also known as Quad in-out, easeInOutQuad.
Quad in-out is a power curve (progress raised to a fixed exponent): the higher the exponent, the stronger the acceleration. The in-out variant is slow at both ends and fastest in the middle, good for moving something between two positions on screen. The exponent is 2. It is identical to GSAP's built-in "power1.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: "power1.inOut" });
GSAP CustomEase
gsap.registerPlugin(CustomEase);
CustomEase.create("quadInOut", "M0,0 C0.0833,0 0.1667,0.0417 0.25,0.125 C0.3333,0.2083 0.4167,0.3333 0.5,0.5 C0.5833,0.6667 0.6667,0.7917 0.75,0.875 C0.8333,0.9583 0.9167,1 1,1");
gsap.to(".box", { x: 200, duration: 0.6, ease: "quadInOut" });
CSS linear()
transition-timing-function: linear(0, 0.002 3.13%, 0.0079 6.27%, 0.0177 9.4%, 0.0311 12.47%, 0.0487 15.6%, 0.0702 18.73%, 0.0956 21.87%, 0.125 25%, 0.1606 28.33%, 0.2014 31.73%, 0.2469 35.13%, 0.2959 38.47%, 0.3472 41.67%, 0.4026 44.87%, 0.4557 47.73%, 0.5719 53.73%, 0.6594 58.73%, 0.7071 61.73%, 0.7513 64.73%, 0.7918 67.73%, 0.8295 70.8%, 0.8689 74.4%, 0.9038 78.07%, 0.9333 81.73%, 0.9574 85.4%, 0.9761 89.07%, 0.9894 92.73%, 0.9973 96.33%, 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.002_3.13%,0.0079_6.27%,0.0177_9.4%,0.0311_12.47%,0.0487_15.6%,0.0702_18.73%,0.0956_21.87%,0.125_25%,0.1606_28.33%,0.2014_31.73%,0.2469_35.13%,0.2959_38.47%,0.3472_41.67%,0.4026_44.87%,0.4557_47.73%,0.5719_53.73%,0.6594_58.73%,0.7071_61.73%,0.7513_64.73%,0.7918_67.73%,0.8295_70.8%,0.8689_74.4%,0.9038_78.07%,0.9333_81.73%,0.9574_85.4%,0.9761_89.07%,0.9894_92.73%,0.9973_96.33%,1)]
Webflow
In Interactions, choose a custom ease and paste this path:
M0,0 C0.0833,0 0.1667,0.0417 0.25,0.125 C0.3333,0.2083 0.4167,0.3333 0.5,0.5 C0.5833,0.6667 0.6667,0.7917 0.75,0.875 C0.8333,0.9583 0.9167,1 1,1
Related easings
- Power in
- Power out
- Power in-out
- Power out-in
- power1.in
- power1.out
- Quad out-in
- power2.inOut
- sine.inOut
- Expo in-out
- circ.inOut
- back.inOut(1.7)
See how power1.inOut measures up against all 91 easings in the easing comparison: progress over time, overshoot and peak speed.
