CSS Cubic-Bezier Editor

Share:
Developer Tools

CSS Cubic-Bezier Editor

Draggable easing curve editor

By Checked against sources by Last reviewed ANIMATION CSS CUBIC-BEZIER EASING FRONTEND
Your browser is too old for this tool’s interactive features. Please update to Safari 13.1, Chrome or Edge 80, Firefox 74 or newer.

CSS Cubic-Bezier Editor

CSS keywords
Material 3
Overshoot
Drag the purple (P1) and pink (P2) handles, or type the numbers below. Shaded bands: output below 0 or above 1.
cubic-bezier(0.25, 0.1, 0.25, 1)

Output stays between 0 and 1: no overshoot, no anticipation.

How far along it is
Time25%50%75%
Progress41%80%96%
transition-timing-function: cubic-bezier(0.25, 0.1, 0.25, 1);
animation-timing-function: cubic-bezier(0.25, 0.1, 0.25, 1);
📅 Research current as of 05 Nov 2026 · Sources: CSS Easing Functions Level 1 §2.2 (W3C Candidate Recommendation Draft, 13 February 2023: cubic-bezier(), keyword equivalents, x restricted to [0, 1], y unrestricted); Material 3 motion tokens (material-foundation/material-tokens, css/motion.css, read 5 Nov 2026); back curves from easings.net; progress values checked against Chromium's own Web Animations output; CSS Media Queries Level 5 §12.1 prefers-reduced-motion; WCAG 2.1 SC 2.3.3
Standards, published formulas, and reference data are revised over time — check against a current authoritative source before relying on these figures.
Advertisement
After results · AD-W1Responsive · Post-tool — peak engagement

How to use the Cubic-Bezier Editor

Start with a preset

Three groups: the five CSS keywords, the Material 3 motion tokens (including the three "legacy" tokens, which are Material 2's curves), and the back curves for anticipation and overshoot. Common starting points: ease-out or Material 3 standard-decelerate for an element that arrives and settles, easeOutBack for one that overshoots.

Drag, or type, the control points

Purple (P1) shapes the start, pink (P2) the end. Drag them, type the four numbers, or paste a whole cubic-bezier() value. x stays within 0–1, as CSS requires; y may run from −0.75 to 1.75 here, and the canvas shows all of that range, so a handle is never dragged off the edge.

Watch it at a real duration

Replay the box at 200 ms, 300 ms, 500 ms, 1 s or 1.6 s. Long durations show the shape; the short ones show how it will actually feel. The table gives how far along the motion is at a quarter, half and three quarters of the time, and the line above it says whether, by how much and when the curve passes its end or dips below its start.

Copy the CSS

Click "Copy CSS" to get both transition-timing-function and animation-timing-function declarations. Paste into your stylesheet. Any browser that implements CSS transitions accepts cubic-bezier(); the only invalid values are x coordinates outside 0–1 (CSS Easing Functions Level 1 §2.2), and this editor cannot produce those.

Advertisement
After how-to · AD-W2Responsive

Cubic-bezier — the math of natural-feeling animation

CSS transitions and animations do not move at constant speed by default — they ease, and the default is the ease keyword. The mechanism is cubic-bezier(x1, y1, x2, y2): a cubic Bézier curve from (0,0) to (1,1) whose shape is set by two control points, P1 = (x1, y1) and P2 = (x2, y2). The horizontal axis is input progress (time), the vertical axis output progress. CSS Easing Functions Level 1 §2.2 defines it, and adds the one hard rule this editor enforces: the x coordinates of P1 and P2 are restricted to 0–1, so you cannot drag a handle past the left or right edge of the canvas. The y coordinates are not restricted — that is what makes overshoot and anticipation possible.

The four built-in CSS easings — and why they don't go far enough

The specification gives every keyword an exact cubic-bezier() equivalent, and the presets above load those values: ease = cubic-bezier(0.25, 0.1, 0.25, 1) (the default), ease-in = cubic-bezier(0.42, 0, 1, 1), ease-out = cubic-bezier(0, 0, 0.58, 1), ease-in-out = cubic-bezier(0.42, 0, 0.58, 1), and linear = cubic-bezier(0, 0, 1, 1). The names describe the shape — ease-in starts slowly, ease-out ends slowly — and the preview shows the difference at 1.6 seconds, where it is much easier to see than at the 100–400 ms durations most interface motion actually uses.

"The x coordinates of P1 and P2 are restricted to the range [0, 1]." — CSS Easing Functions Level 1, §2.2. The y coordinates are not, which is why overshoot exists.

Which Material curves the presets are

Material Design 2's curves were standard cubic-bezier(0.4, 0, 0.2, 1), decelerate cubic-bezier(0, 0, 0.2, 1) and accelerate cubic-bezier(0.4, 0, 1, 1). Material Design 3 replaced them and keeps them as its "legacy" tokens. Its published tokens (material-foundation/material-tokens, motion.css) are standard cubic-bezier(0.2, 0, 0, 1), standard-decelerate cubic-bezier(0, 0, 0, 1), standard-accelerate cubic-bezier(0.3, 0, 1, 1), emphasized-decelerate cubic-bezier(0.05, 0.7, 0.1, 1) and emphasized-accelerate cubic-bezier(0.3, 0, 0.8, 0.15), with duration tokens from 50 ms to 1000 ms. They are presets above, along with the three tokens Material 3 keeps as "legacy", which are exactly the Material 2 curves.

Y values outside 0-1 — overshoot + bounce

Because the specification restricts only x, a y value above 1 means the output passes its target and comes back — overshoot, as in easeOutBack, cubic-bezier(0.34, 1.56, 0.64, 1), which peaks about 9.8% past its end at 57% of the duration — and a y below 0 means it moves backwards first — anticipation, as in easeInOutBack's y1 = −0.6. A single cubic-bezier can do each of those at most once, so it cannot bounce; easings.net, which publishes the back curves, gives no cubic-bezier for its bounce or elastic easings at all. This editor lets y run from −0.75 to 1.75, which covers every back curve here, and draws that whole range; the spec itself has no limit. Motion that overshoots is exactly the kind WCAG 2.1 SC 2.3.3 (Animation from Interactions) asks you to let users disable, and CSS Media Queries Level 5 §12.1 gives you the switch: wrap it in @media (prefers-reduced-motion: no-preference) and fall back to a plain fade or no motion otherwise.

Frequently Asked Questions

  • Because the result would not be valid CSS. CSS Easing Functions Level 1 §2.2 restricts the x coordinates of both control points to 0–1 — x is input progress, and a curve that doubled back in time would have two outputs for one instant. The editor clamps x at the canvas edges so every value it prints is accepted by the browser. Vertical movement is different: y may go below 0 or above 1, and the editor allows −0.75 to 1.75. A typed or pasted value with x outside 0–1 is refused with a message rather than clamped silently.

  • The CSS specification sets no duration; the easing curve only shapes whatever duration you give it. For a published scale, Material Design 3's motion tokens run from 50 ms to 1000 ms in steps (50, 100, 150, 200, 250, 300, 350, 400, 450, 500, 550, 600, 700, 800, 900, 1000 ms), with the shorter values for small components and the longer ones for large or full-screen transitions. The preview defaults to 1.6 s, longer than any of those, because the shape is easier to see; switch it to 200 or 300 ms to see how the same curve feels at interface speed.

  • Yes, and the two belong together. CSS Media Queries Level 5 §12.1 defines prefers-reduced-motion so a page can detect the operating-system setting, and WCAG 2.1 SC 2.3.3 (Animation from Interactions) asks that motion triggered by interaction can be disabled unless it is essential. Put overshoot and bounce curves inside @media (prefers-reduced-motion: no-preference), and give the reduce case a plain fade, an ease-out, or no animation at all.

  • Its first control point has a negative y: cubic-bezier(0.68, −0.6, 0.32, 1.6). Output progress dips to about −0.105 at 21% of the duration, so the box moves away from its destination, then climbs to about 1.105 at 79% before settling. That is anticipation followed by overshoot, and it is legal because the specification restricts only the x coordinates. This preset was labelled "bounce-out" until November 2026; it does not bounce, and no single cubic-bezier can. Drag the purple handle above the baseline to keep the overshoot and drop the anticipation.

  • Dragging snaps each coordinate to steps of 0.01, so a drag that lands near 0.4173 prints as 0.42. Typed and pasted values keep up to three decimals, and trailing zeros are dropped, so the ease keyword prints as cubic-bezier(0.25, 0.1, 0.25, 1), exactly as the specification writes it. The specification puts no limit on precision, but three decimals is already finer than the eye can tell apart at interface durations.

  • Anything where the motion represents a quantity rather than a movement: a progress bar that should advance in proportion to work done, a spinner that must rotate at constant speed, a scrolling timeline, or a looping animation where an eased restart would visibly stutter. linear is cubic-bezier(0, 0, 1, 1) — output equals input at every point — so the preset draws a straight diagonal.

  • Design systems that publish tokens keep the set small. Material Design 3's motion tokens name three families — standard, emphasized and linear — each with accelerate (exit) and decelerate (enter) variants, and every product screen draws from those. Picking two or three cubic-bezier() values, naming them as custom properties, and using nothing else is the same discipline at any scale.

  • No. The curve, the numbers you type and anything you paste stay in this page: nothing is sent to a server, saved, or put in the address bar.

  • Yes. The Material 3 presets are the published tokens: standard cubic-bezier(0.2, 0, 0, 1), standard-decelerate cubic-bezier(0, 0, 0, 1), standard-accelerate cubic-bezier(0.3, 0, 1, 1), emphasized-decelerate cubic-bezier(0.05, 0.7, 0.1, 1) and emphasized-accelerate cubic-bezier(0.3, 0, 0.8, 0.15). The token file stores them as 32-bit floats (0.20000000298023224 and so on); the presets use the decimals they round to. Its three "legacy" tokens are Material 2's curves: standard cubic-bezier(0.4, 0, 0.2, 1), decelerate cubic-bezier(0, 0, 0.2, 1) and accelerate cubic-bezier(0.4, 0, 1, 1). Material 3's full "emphasized" easing is a path, not a single cubic-bezier, which is why only its two halves appear.

Method & sources

How it computes

cubic-bezier(x1, y1, x2, y2) per CSS Easing Functions Level 1 §2.2: a Bézier from (0,0) to (1,1), x1 and x2 within [0, 1]. Output progress at an input progress x = y(t) where x(t) = x (bisection; x(t) is monotonic). Overshoot and anticipation = the extremes of y(t), from the roots of dy/dt. Values print to three decimals; drags snap to 0.01 and y runs −0.75 to 1.75.

What this tool implements

  • Keyword presets are CSS Easing Functions Level 1 §2.2's equivalents: ease (0.25, 0.1, 0.25, 1), ease-in (0.42, 0, 1, 1), ease-out (0, 0, 0.58, 1), ease-in-out (0.42, 0, 0.58, 1); linear (0, 0, 1, 1) is the identity.
  • "The x coordinates of P1 and P2 are restricted to the range [0, 1]" (§2.2): dragging clamps x, and a typed or pasted x outside 0–1 is refused with a message. y is unrestricted by the spec; the editor lets it run from −0.75 to 1.75 and the canvas draws that whole range, so every preset's handles are on screen.
  • Material presets are the Material 3 tokens in material-foundation/material-tokens (css/motion.css, json branch, read 2026-11-05): standard (0.2, 0, 0, 1), standard-decelerate (0, 0, 0, 1), standard-accelerate (0.3, 0, 1, 1), emphasized-decelerate (0.05, 0.7, 0.1, 1), emphasized-accelerate (0.3, 0, 0.8, 0.15), and the legacy tokens, which are Material 2's curves (0.4, 0, 0.2, 1), (0, 0, 0.2, 1), (0.4, 0, 1, 1). The file stores 32-bit floats; the decimals they round to are used.
  • Overshoot presets are easings.net's easeInBack (0.36, 0, 0.66, −0.56), easeOutBack (0.34, 1.56, 0.64, 1) and easeInOutBack (0.68, −0.6, 0.32, 1.6). easings.net gives no cubic-bezier for its bounce or elastic easings, and no single cubic-bezier can bounce; no preset is called bounce.
  • Output progress at 10, 25, 50, 75 and 90% of the time for six presets matches Chromium 152's own easing (read through the Web Animations API, 2026-11-05) to within 2 × 10⁻⁵.
  • Not produced: the step easing functions (§2.3) and linear() of later drafts. Overshoot and anticipation are reported with a pointer to prefers-reduced-motion (Media Queries Level 5 §12.1), the switch for WCAG 2.1 SC 2.3.3.
  • Corrected 2026-11-05: overshoot handles were drawn off the canvas; "bounce-out" was easeInOutBack; the unsourced "sharp" and "gentle" presets were removed; output now keeps three decimals (was two).

Sources

Advertisement
Pre-footer · AD-W3 728 × 90