Lab 07
Cubic-bezier generator and GSAP ease visualizerSee the easebefore you ship it.
Drag the handles of a CSS cubic-bezier() or pick a GSAP ease, and watch a box move with it. Compare two eases side by side, then copy the CSS value or the GSAP ease. It all runs in your browser.
Drag the two handles, or focus one and use the arrow keys.
Ease A
CSS value
cubic-bezier(0.25, 0.1, 0.25, 1)
GSAP CustomEase path
M0,0 C0.25,0.1 0.25,1 1,1
Same curve as the CSS keyword ease. GSAP has no cubic-bezier ease built in, so the GSAP version uses the CustomEase plugin, which ships free with GSAP.
.box {
transition: transform 1.2s cubic-bezier(0.25, 0.1, 0.25, 1);
}Preview
Ease A: cubic-bezier(0.25, 0.1, 0.25, 1)
Ease B: "power3.out"
A cubic-bezier generator that also speaks GSAP
This easing visualizer draws a CSS cubic-bezier() you can drag, or any built-in GSAP ease, and moves a box with it so you can feel the timing. Turn on Compare two to put two eases side by side. Every curve comes with the CSS value and the GSAP code, ready to copy.
- 01
Pick a curve
For Ease A, choose CSS cubic-bezier and drag the two handles, type the four numbers, start from a preset, or paste a value such as
cubic-bezier(0.16, 1, 0.3, 1). Or choose GSAP ease and pick a family and a direction, such aspower3and.out. - 02
Compare two
Switch to Ease B and set a second curve. Both draw on the same graph, and the Preview moves one box per ease over the same Duration, so you see which one starts faster, settles sooner or overshoots.
- 03
Copy the code
The CSS value and GSAP boxes update as you edit. Copy the value alone, or open the CSS or GSAP tab for a full snippet with the duration you set.
How cubic-bezier() works
An easing curve maps time to progress. Both run from 0 to 1: at time 0 nothing has moved, at time 1 the animation is done. A CSS cubic-bezier(x1, y1, x2, y2) draws that map as a curve from the bottom left corner to the top right, bent by two control points. The four numbers are those two points.
The x values are time, so CSS keeps them between 0 and 1. The y values are progress, and they may go below 0 or above 1. That is how an ease overshoots: cubic-bezier(0.34, 1.56, 0.64, 1) goes past the end and settles back. A steep part of the curve means fast movement, a flat part means slow.
Turning GSAP eases into CSS, and back
GSAP eases such as power2.out or expo.inOut are formulas, not bezier curves, but most of them are close to one. When you pick a GSAP ease, the tool searches for the closest cubic-bezier() and tells you how far apart they are. Elastic and bounce eases change direction more than one cubic curve can, so for those it writes a CSS linear() function instead: many points along the curve, joined by straight lines.
Going the other way, GSAP has no cubic-bezier ease built in. The GSAP code for a bezier uses the CustomEase plugin, which is free and ships with GSAP, and the tool names a built-in ease when one draws almost the same curve. The scroll playground uses the same GSAP eases on a pinned, scrubbed section.
Choosing an ease for UI motion
Things that enter the screen usually feel best with an ease out: fast at the start, slow at the end, like expo.out or cubic-bezier(0.16, 1, 0.3, 1). Things that move from one place on screen to another suit an ease in out. Ease in alone, slow then fast, suits things that leave.
Keep durations short for small elements, about 0.2 to 0.4 seconds, and longer for large ones. Save overshoot for playful details. And give people who turn motion off a still version: this tool does, and so should your site. With reduced motion on, the preview shows where the box is at every tenth of the time instead of moving it.
Frequently asked questions
What does cubic-bezier mean in CSS?
cubic-bezier(x1, y1, x2, y2) is a CSS timing function. It describes how an animation or transition speeds up and slows down, as a curve from the start to the end, shaped by two control points. The keywords ease, ease-in, ease-out and ease-in-out are named cubic-bezier curves.
What is the CSS equivalent of GSAP power2.out?
Pick power2 and .out in the tool and it shows the closest cubic-bezier() and how far apart the two curves are. Most power, sine, expo, circ and back eases have a cubic-bezier within a few percent. Elastic and bounce do not, so the tool gives a CSS linear() function for those.
Can I use a cubic-bezier curve in GSAP?
Yes, with the CustomEase plugin, which is free and included in the gsap package. Register it, create an ease from the path the tool gives you, such as M0,0 C0.16,1 0.3,1 1,1, and use its name as the ease. The GSAP tab writes the full code.
Does the easing visualizer respect reduced motion?
Yes. When your device asks for reduced motion, nothing moves by itself. The preview shows faint boxes at each tenth of the time, so you can still read the ease, and the box only moves if you press Play. Nothing you enter is stored or sent anywhere.
Need this built into your site?
I build tools like this one, and the sites around them. Tell me what you need and I will reply with a plan and a fixed price.