MeasingsSee, tune and export easings

sine.inOut ease

Also known as Sine in-out, easeInOutSine.

Sine in-out is a sine curve, the gentlest of the classic easings. 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 "sine.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: "sine.inOut" });

GSAP CustomEase

gsap.registerPlugin(CustomEase);
CustomEase.create("sineInOut", "M0,0 C0.0833,0 0.1667,0.0539 0.25,0.1464 C0.3333,0.239 0.4167,0.3691 0.5,0.5 C0.5833,0.6309 0.6667,0.761 0.75,0.8536 C0.8333,0.9461 0.9167,1 1,1");

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

CSS linear()

transition-timing-function: linear(0, 0.0023 3.07%, 0.0095 6.2%, 0.0213 9.33%, 0.0379 12.47%, 0.0593 15.67%, 0.0859 18.93%, 0.1174 22.27%, 0.1547 25.73%, 0.2251 31.47%, 0.313 37.8%, 0.4032 43.8%, 0.6243 58%, 0.7279 65.07%, 0.7749 68.53%, 0.8163 71.8%, 0.8528 74.93%, 0.8853 78%, 0.9124 80.87%, 0.9356 83.67%, 0.9555 86.47%, 0.9715 89.2%, 0.984 91.93%, 0.9928 94.6%, 0.9982 97.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.0023_3.07%,0.0095_6.2%,0.0213_9.33%,0.0379_12.47%,0.0593_15.67%,0.0859_18.93%,0.1174_22.27%,0.1547_25.73%,0.2251_31.47%,0.313_37.8%,0.4032_43.8%,0.6243_58%,0.7279_65.07%,0.7749_68.53%,0.8163_71.8%,0.8528_74.93%,0.8853_78%,0.9124_80.87%,0.9356_83.67%,0.9555_86.47%,0.9715_89.2%,0.984_91.93%,0.9928_94.6%,0.9982_97.33%,1)]

Webflow

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

M0,0 C0.0833,0 0.1667,0.0539 0.25,0.1464 C0.3333,0.239 0.4167,0.3691 0.5,0.5 C0.5833,0.6309 0.6667,0.761 0.75,0.8536 C0.8333,0.9461 0.9167,1 1,1

Related easings

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

Browse all 91 easings in Measings