CSS, GSAP, Remotion and Lottie all describe an ease with the same four numbers: a cubic-bezier curve. After Effects describes it as influence and speed, which convert to and from those four numbers. The free Easing Lab lets you drag a curve or pick from 29 presets, then copies it as CSS, GSAP, Remotion or Lottie code, or as After Effects values. There is a spring tool too. Everything is calculated in your browser.
Easing is the difference between a movement that feels mechanical and one that feels alive. If you work across motion design and the web, you draw the same curve in several tools. This guide shows how they relate.
The four numbers
A cubic-bezier curve starts at (0, 0) and ends at (1, 1). Two control points shape it. The first, (x1, y1), controls how the movement leaves the start, and the second, (x2, y2), controls how it arrives. The x values must stay between 0 and 1. The y values can go outside, which makes the movement overshoot and spring back.
Converting to After Effects
For a segment between two keyframes that changes a value by V over T seconds:
- Out influence = x1 as a percent. Out speed = (y1 divided by x1) times V divided by T.
- In influence = (1 minus x2) as a percent. In speed = ((1 minus y2) divided by (1 minus x2)) times V divided by T.
After Effects limits influence to between 0.1 and 100 percent. As a worked example, take the CSS keyword ease, which is cubic-bezier(0.25, 0.1, 0.25, 1), on a move of 100 units over 1 second. The tool gives an out influence of 25%, an out speed of 40 units per second, an in influence of 75% and an in speed of 0. Enter the four numbers from CSS and you get the After Effects values, or paste in After Effects values and get the CSS back.
Where each output goes
- CSS cubic-bezier(): transition and animation properties.
- CSS linear(): a list of sampled points, which allows any curve, including a spring, in current Chrome, Firefox and Safari.
- GSAP CustomEase: a plugin you import and register, separate from the GSAP core.
- Remotion Easing.bezier: passed to interpolate().
- Lottie: the "o" and "i" tangents of a keyframe in Lottie JSON.
- After Effects: influence and speed for the Keyframe Velocity dialog, or a script that applies the curve to selected keyframes.
Springs
A bezier curve cannot bounce several times. For that use the spring tool. It solves a weight on a spring released from rest, going from 0 to 1, and shows overshoot, settle time, Remotion code and a CSS linear() version. A damping ratio under 1 overshoots and wobbles, 1 settles fastest without overshoot, and over 1 creeps in slowly. I checked the result against a numerical simulation of the same spring.
Limits to keep in mind
- The CSS keyword presets are exact. The easings.net presets are cubic-bezier approximations of the Penner equations, within 0.04 on a 0 to 1 scale.
- The After Effects script follows the scripting API but I could not run After Effects where I built it. Try it on a copy of your project first.
- Some tools clamp y values to 0 to 1 and will not overshoot. Check the result in yours.
- I have not compared Remotion's spring() output number by number, so check the motion in your project.
Frequently asked questions
How do I use an After Effects ease in CSS?
Convert influence and speed to the four cubic-bezier numbers: x1 is the out influence as a fraction, and y1 comes from the out speed, the keyframe distance and time. The tool does this in both directions.
What does a cubic-bezier y value above 1 do?
It makes the movement overshoot the end value and settle back, like a gentle spring. The x values must stay between 0 and 1.
Can CSS do a bounce?
Not with cubic-bezier alone. Use CSS linear(), which takes a list of sampled points, and the spring tool can generate one.
Are the 29 presets exact?
The CSS keywords are exact. The others are the published cubic-bezier approximations of the classic Penner equations, which differ from the true curves by less than 0.04.
