A worked example, rendered from real sample data. Sign in to run the tool on your own input.
ease-in-outease-in-out · cubic-bezier(0.42, 0, 0.58, 1)
/* CSS transition */
.element {
transition: all 300ms cubic-bezier(0.42, 0, 0.58, 1);
}
/* CSS animation */
.element {
animation: slide 300ms cubic-bezier(0.42, 0, 0.58, 1) both;
}
/* Framer Motion */
transition={{ duration: 0.30, ease: [0.42, 0, 0.58, 1] }}
/* GSAP (CustomEase plugin) */
CustomEase.create("custom", "M0,0 C0.42,0 0.58,1 1,1");
gsap.to(".element", { duration: 0.30, ease: "custom", x: 200 });
/* Control points: P1(0.42, 0) P2(0.58, 1) */
Generate CSS cubic-bezier timing functions from control points. Part of the DevTools Surf developer suite. Browse more tools in the Web / Frontend collection.