Skip to content
Motion and CSS

Easing Editor

Draw a cubic-bezier curve or build a spring, bounce or elastic as CSS linear(), watch it move, and copy the CSS or GSAP code.

Last checked

Curve

Preview

Position
Scale
Opacity
Rotate

Overshoots by 10%

Code

CSS easing

cubic-bezier(0.34, 1.56, 0.64, 1)

CSS transition

transition: transform 800ms cubic-bezier(0.34, 1.56, 0.64, 1);

GSAP

CustomEase.create("myEase", "M0,0 C0.34,1.56 0.64,1 1,1");

Closest built-in GSAP ease: back.out(1.7) (almost exact).

Tailwind

ease-[cubic-bezier(0.34,1.56,0.64,1)]

Framer Motion

ease: [0.34, 1.56, 0.64, 1]

SwiftUI

.timingCurve(0.34, 1.56, 0.64, 1, duration: 0.3)

iOS Core Animation

CAMediaTimingFunction(controlPoints: 0.34, 1.56, 0.64, 1)

Jetpack Compose

CubicBezierEasing(0.34f, 1.56f, 0.64f, 1f)

Android

PathInterpolator(0.34f, 1.56f, 0.64f, 1f)

Presets

CSS

easings.net

How to use it

  1. Drag the two handles, type the four numbers, paste an existing cubic-bezier(), a whole transition line or a steps() value, or pick a preset.
  2. For a spring, bounce or elastic motion, switch to Spring and bounce. Pick Real spring to set stiffness, damping and mass; the duration then comes from the spring.
  3. Watch the four lanes, change the duration, then copy the CSS or GSAP code. Copy share link stores the curve in the URL.

What it checks and why

A cubic-bezier easing has four numbers: the two control points of a curve that runs from (0, 0) to (1, 1). The x values must stay between 0 and 1. The y values may go past that range, and that is how you get an overshoot or a pull-back before the move.

CSS cannot describe a spring or a bounce with a cubic-bezier, because those curves cross the end value several times. The linear() function can: it takes a list of sample points and joins them with straight lines. This page samples a physical model of the motion and writes the list for you, so the result works as a plain CSS transition with no JavaScript.

Real spring mode solves a damped spring that starts at rest, so the same stiffness, damping and mass give the same motion as in Motion (Framer Motion), react-spring or SwiftUI. The duration is the time until the spring stays within 0.1% of its target.

A long list of evenly spaced points is wasteful where the curve is nearly straight. The shortening option keeps only the points needed to stay within the tolerance and writes each with its position, the way Jake Archibald's linear() generator does.

The preview runs your exact CSS value through the Web Animations API, so what you see is what the browser will do. The closest built-in GSAP ease, including bounce and elastic, is found by comparing your curve with each GSAP curve over 100 points; when none is close, the GSAP code traces your curve with CustomEase.

Specs and sources

Limits

  • linear() needs Chrome and Edge 113, Firefox 112 or Safari 17.2. Older browsers ignore the value and use the default easing.
  • The Spring, Bounce and Elastic presets with a liveliness slider are tuned to look right. Use Real spring when the motion must match Motion, react-spring or SwiftUI.
  • A spring in linear() has a fixed duration, so it cannot carry over the velocity of an interrupted animation the way a JavaScript spring can.
  • The nearest GSAP ease is an approximation. Use the CustomEase line when the curve must match exactly.

Questions

What do the four numbers in cubic-bezier() mean?
They are the x and y of the two control points: cubic-bezier(x1, y1, x2, y2). The curve starts at (0, 0), is pulled toward the first point, and ends at (1, 1), pulled by the second. Time runs along x and progress along y.
How do I make a bounce or spring in CSS?
Use linear(). Pick Bounce or Spring in the second mode, copy the linear(...) value and set it as the transition-timing-function or animation-timing-function. For a spring, also use the duration the tool gives.
How do I match a Framer Motion or react-spring spring in CSS?
Pick Real spring and type the same stiffness, damping and mass (react-spring calls them tension, friction and mass). Copy the linear() value and the duration shown: together they replay the same motion as a CSS transition.
What does steps() do?
steps(4) jumps between four held values instead of moving smoothly, which suits sprite sheets and typewriter effects. jump-end (the default) holds each value to the end of its step, jump-start jumps at the start, jump-none shows both ends, and jump-both adds a jump at each end.
Is linear() safe to use?
Yes in current browsers: Chrome and Edge 113, Firefox 112 and Safari 17.2 support it, so it has been Baseline since December 2023. Older browsers drop the declaration, so put a cubic-bezier() line before it as a fallback.
Can the y values go below 0 or above 1?
Yes. A y2 above 1 overshoots the end value before settling; a y1 below 0 pulls back before the move starts. The x values cannot leave the range 0 to 1, or the browser rejects the whole value.
What is the difference between ease and ease-in-out?
ease is cubic-bezier(0.25, 0.1, 0.25, 1): a quick start and a long, soft stop. ease-in-out is cubic-bezier(0.42, 0, 0.58, 1): it starts and stops slowly and moves fastest in the middle.