Cubic Bezier in-out ease
Cubic Bezier in-out is a plain cubic Bézier curve, the same model as CSS cubic-bezier(). The in-out variant is slow at both ends and fastest in the middle, good for moving something between two positions on screen. Control points: (0.7, 0.1) and (0.5, 0.9). 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("cubicBezierInOut", "M0,0 C0.7,0.1 0.5,0.9 1,1");
gsap.to(".box", { x: 200, duration: 0.6, ease: "cubicBezierInOut" });
CSS cubic-bezier()
transition-timing-function: cubic-bezier(0.7, 0.1, 0.5, 0.9);
Tailwind
ease-[cubic-bezier(0.7,0.1,0.5,0.9)]
Webflow
In Interactions, choose a custom ease and paste this path:
M0,0 C0.7,0.1 0.5,0.9 1,1
Related easings
- Cubic Bezier in
- Cubic Bezier out
- Cubic Bezier out-in
- power2.inOut
- sine.inOut
- Expo in-out
- circ.inOut
- back.inOut(1.7)
- elastic.inOut(1, 0.3)
- bounce.inOut
See how Cubic Bezier in-out measures up against all 91 easings in the easing comparison: progress over time, overshoot and peak speed.
