Cubic Bezier Generator

Visual cubic-bezier() editor for CSS easing curves. Drag the control points, preview the animation live, and copy CSS / SCSS / Tailwind output. Runs in your browser.

  • Runs in your browser
  • Tool input is not uploaded to ZeroTool servers
  • Free · No Sign-Up
Choose one of 12 presets, including the separate Material 2 and Material 3 curves. Presets replace the four control-point values.
X is clamped to 0–1; Y is clamped to −2–2 for anticipation and overshoot. Fields and copied values keep up to three decimals; finer values from dragging are rounded to three. A value typed outside these ranges is clamped and a message appears.
X is clamped to 0–1; Y is clamped to −2–2 for anticipation and overshoot. Fields and copied values keep up to three decimals; finer values from dragging are rounded to three. A value typed outside these ranges is clamped and a message appears.
Preview duration is limited to 100–10,000 ms. Play starts from the beginning; Pause stops the preview. Loop repeats it. Duration and Loop do not appear in the generated timing-function code.
ms
Reset restores ease-in-out (0.42, 0, 0.58, 1), 1500 ms and CSS output, stops playback and clears saved settings on this device. Ctrl/⌘+L does the same while a tool control has focus. Loop stays unchanged.
Choose a CSS timing-function declaration, an SCSS variable or a Tailwind configuration snippet, then copy the visible output. These formats use the same control points.
transition-timing-function: cubic-bezier(0.42, 0, 0.58, 1);
Drag either filled circle to edit the curve. The diagonal is linear timing. Scroll this preview to reach control points above or below the square.

Drag the two filled circles. Numbers update live.

Read the full guide Cubic Bezier Generator: Stop Guessing CSS Easing Curves
Examples, details and FAQ Worked examples, how it compares with other tools, and answers to common questions.

When to reach for a custom cubic-bezier

CSS Easing Functions Level 1 defines linear, four cubic-bezier keywords (ease, ease-in, ease-out, ease-in-out) and two step keywords (step-start, step-end), which jump instead of following a curve. This editor makes cubic-bezier() curves only; it has presets for linear and the four cubic-bezier keywords, and none for the step keywords. The keywords cover the everyday cases. You need a custom cubic-bezier when:

  • Your design system has a defined motion language — Material Design 2's standard curve (0.4, 0, 0.2, 1), Material 3's (0.2, 0, 0, 1), or Tailwind's ease-in-out.
  • The animation should overshoot or anticipate — modal pop-ins, drawer drags, button press feedback.
  • You want to match a Figma or After Effects timing curve so the prototype and the production build use the same numbers.

Reading the curve at a glance

The X axis is normalized time (0 at the start, 1 at the end). The Y axis is animation progress. A diagonal line means linear. A curve that sags below the diagonal starts slowly and catches up at the end (ease-in feel). A curve that bulges above starts fast and slows down (ease-out feel). An S-shape, below then above, is ease-in-out. When the curve dips below 0 or above 1, you get the "spring" effect — useful for playful UI but distracting in functional flows.

Worked examples

Each example below was produced by the editor itself: the output block is what Copy puts on the clipboard, and the x → y lines are the progress the preview uses at that moment of the animation, rounded to three decimals.

The Back preset, copied as SCSS

Click Back (overshoot) and choose the SCSS tab:

$ease-custom: cubic-bezier(0.68, -0.55, 0.265, 1.55);
x = 0.1 → y = -0.066
x = 0.2 → y = -0.093
x = 0.5 → y = 0.607
x = 0.8 → y = 1.092

For the first fifth of the duration the element moves backwards (y below 0), and near the end it passes its target by about 9% before it settles at 1.

Material 2 standard against Material 3 standard

Both are called "standard", but they move at different speeds. Click Material 2 Std:

transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
x = 0.25 → y = 0.237
x = 0.5 → y = 0.776

Then click Material 3 Std:

transition-timing-function: cubic-bezier(0.2, 0, 0, 1);
x = 0.25 → y = 0.607
x = 0.5 → y = 0.878

A quarter of the way through the duration, the Material 3 curve has covered 60.7% of the distance and the Material 2 curve 23.7%. If you update an app from Material 2 to Material 3, the same 300 ms transition will look faster at the start.

A Tailwind theme value

The Tailwind CSS v4 documentation uses cubic-bezier(0.3, 0, 0, 1) as an example theme value. Type 0.3, 0, 0, 1 into the fields and choose the Tailwind tab:

// tailwind.config.js
module.exports = {
  theme: {
    extend: {
      transitionTimingFunction: {
        'custom': 'cubic-bezier(0.3, 0, 0, 1)',
      },
    },
  },
};

This is the v3 JavaScript configuration. In a v4 project, either load the file with @config "./tailwind.config.js"; or write the value as a theme variable, @theme { --ease-custom: cubic-bezier(0.3, 0, 0, 1); }; both give the class ease-custom.

Common easing playbook

Use caseRecommended curveWhy
Page or section entercubic-bezier(0, 0, 0.2, 1) (decelerate)Fast at first, settles softly so the user catches the final state.
Page or section exitcubic-bezier(0.4, 0, 1, 1) (accelerate)Slow at first, leaves quickly so the next view feels snappy.
Generic transitioncubic-bezier(0.4, 0, 0.2, 1) (Material 2 standard)Speeds up quickly and slows down gently — works for hover, focus, and small movements.
Playful pop-incubic-bezier(0.68, -0.55, 0.265, 1.55) (back ease)Anticipation plus overshoot; for badges, toasts, attention nudges.
Drag followcubic-bezier(0.25, 0.46, 0.45, 0.94)Starts less abruptly than the decelerate curve above.

Where the presets come from

Each preset button loads the four numbers below. The labels name the system and version, because the same name can mean different curves: Material 3 replaced the Material 2 standard curve, and Apple has more than one default.

PresetValueSource
Ease, Ease-In, Ease-Out, Ease-In-Out(0.25, 0.1, 0.25, 1), (0.42, 0, 1, 1), (0, 0, 0.58, 1), (0.42, 0, 0.58, 1)The CSS keywords, CSS Easing Functions Level 1 §2.2
Material 2 Std / Decel / Accel(0.4, 0, 0.2, 1), (0, 0, 0.2, 1), (0.4, 0, 1, 1)Material Design 2, Speed
Material 3 Std(0.2, 0, 0, 1)Material 3 easing tokens (md.sys.motion.easing.standard)
Core Animation default(0.25, 0.1, 0.25, 1)CAMediaTimingFunctionName.default; the same curve as CSS ease. UIKit view animations default to ease-in-ease-out instead.
Tailwind In-Out(0.4, 0, 0.2, 1)Tailwind CSS transition-timing-function (ease-in-out)
Back (overshoot)(0.68, -0.55, 0.265, 1.55)A common overshoot curve; the y values below 0 and above 1 make it pull back and spring past the end.

The x values of both control points must stay between 0 and 1, because time cannot run backwards; the editor clamps them. The y values may leave that range, which is how the Back preset overshoots.

Limits

  • Values keep at most three decimals. Dragging gives finer numbers, which are rounded to three in the fields and in the copied output.
  • Y is limited to −2–2, because the preview has room for that range only. CSS itself accepts any y value; a token such as cubic-bezier(0.55, 2.05, 0.65, 0.75) is copied as 2 and the editor shows a message. Write larger values into your CSS by hand.
  • An x value typed outside 0–1 is clamped and a message appears; CSS would reject the whole declaration.
  • The editor makes only cubic-bezier(). It does not make steps() or the linear() function with several points, so it cannot draw a bounce with more than one rebound.
  • The preview duration (100–10,000 ms) and Loop only control the preview; they are not part of the copied code. Add your own transition-duration.
  • The Tailwind tab prints the v3 tailwind.config.js format with the key custom; in v4 use @config or a --ease-* theme variable, as shown above.

Privacy

Curve evaluation, the animation preview and copying run in your browser. The control points, duration and output format are saved in localStorage on this device; Reset removes them. The page loads Google Analytics: a successful copy records the tool name and the format (such as copy_css), never the numbers.

Related tools

FAQ

What is a cubic-bezier easing function?

A CSS cubic-bezier(x1, y1, x2, y2) describes a curve that maps elapsed time (0 to 1) to animation progress. The curve is anchored at (0, 0) and (1, 1); the two points you control are P1 and P2. CSS Easing Functions Level 1 restricts P1.x and P2.x to [0, 1] and says the definition is invalid otherwise. The y values may go below 0 or above 1 to express anticipation and overshoot.

How is this different from the ease, ease-in, ease-out keywords?

The four CSS keywords are named cubic-bezier curves: ease is cubic-bezier(0.25, 0.1, 0.25, 1), ease-in is (0.42, 0, 1, 1), ease-out is (0, 0, 0.58, 1) and ease-in-out is (0.42, 0, 0.58, 1). With a custom curve you can match a design system value (Material, Apple Core Animation, Tailwind), tune one transition, and reuse the same four numbers in CSS, SCSS and Tailwind.

Why can P1.y or P2.y go outside the 0 to 1 range?

Y values below 0 make the element move back before it starts (anticipation); values above 1 make it pass the end and come back (overshoot). The Back preset, cubic-bezier(0.68, -0.55, 0.265, 1.55), does both: at x = 0.2 the curve is at -0.093 and at x = 0.8 it is at 1.092. The X axis is time, so it must stay in [0, 1]. This editor limits y to −2–2; type a larger value directly into your CSS.

Why does the copied value have at most three decimals?

Fields and output keep up to three decimals, so preset and design-token values such as 0.265 or 0.645 are copied unchanged. Dragging a handle gives finer numbers; they are rounded to three decimals in the fields and in the output. If you need more digits, edit the copied text.

How do I plug the output into Tailwind CSS?

The Tailwind tab prints a tailwind.config.js entry named custom under theme.extend.transitionTimingFunction, which gives the class ease-custom; rename the key as needed. That is the v3 configuration format. In Tailwind CSS v4 you can load such a file with @config, or put the same value in CSS as a theme variable, for example @theme { --ease-custom: cubic-bezier(0.4, 0, 0.2, 1); }.

Are my settings stored or sent anywhere?

The control points, the preview duration and the output format are saved in localStorage on this device so they return when you reload; the Loop option is not saved. Reset to ease-in-out (or Ctrl/⌘+L inside the tool) restores the defaults and removes the saved entry. The curve is not sent to a server. The page loads Google Analytics; a successful copy records the tool name and the format (for example copy_css), not the numbers.