CSS cubic-bezier easing generator

This cubic-bezier generator creates custom CSS timing-function easing curves: drag the SVG control points, preview the motion, and copy the cubic-bezier() value or transition CSS.

Design custom easing curves with a live SVG editor: drag the two handles, pick a preset, watch a dot animate along the curve, then copy the cubic-bezier() value and a ready-to-use transition declaration. Respects prefers-reduced-motion.

How to use the cubic-bezier generator

  1. Drag the two handles on the curve editor, or type the four numbers directly into the inputs (x values 0–1, y values free for overshoot).
  2. Pick a preset from the row below the editor to start from a known curve like ease-out-back or ease-in-out.
  3. Watch the live preview dot animate with your curve; the animation pauses automatically if prefers-reduced-motion is set.
  4. Click Copy on the cubic-bezier() value or the transition example, then paste into your CSS or Tailwind config.

Control points

x values are clamped to 0–1 per the CSS spec. y values are free — values above 1 or below 0 create overshoot.

Curve editor

(0.25, 0.10)(0.25, 1.00)

Drag handles or focus and use arrow keys (Shift+arrow for larger steps).

Presets

Current: ease

Live preview

A dot animates from left to right using the chosen curve.

cubic-bezier() value

cubic-bezier(0.250, 0.100, 0.250, 1.000)

Transition example

transition: transform 0.4s cubic-bezier(0.250, 0.100, 0.250, 1.000);

Tailwind v4

@theme {{ --ease-*: 0.250, 0.100, 0.250, 1.000; }}

Tailwind v3 (tailwind.config.js)

theme: {{
  extend: {{
    transitionTimingFunction: {{
      '*': '0.250, 0.100, 0.250, 1.000',
    }},
  }},
}}

When a custom cubic-bezier pays off

Browser keywords (ease, ease-in, ease-out, ease-in-out) cover the common cases, but they are fixed. A custom curve lets you match the motion to the UI: a snappy card flip that overshoots slightly (ease-out-back), a heavy drawer that starts slow and ends slow (ease-in-out-quart), or a bespoke curve tuned to your brand's motion language. The generator gives you the exact four numbers so the curve is reproducible across CSS, Tailwind, and any animation library that accepts cubic-bezier.

Related CSS tools

Frequently asked questions

What do the four numbers in cubic-bezier() mean?

The four numbers are the x and y coordinates of two control points: cubic-bezier(x1, y1, x2, y2). The curve starts at (0, 0) and ends at (1, 1). The first control point (x1, y1) shapes the initial acceleration; the second (x2, y2) shapes the deceleration into the finish. x values must stay between 0 and 1; y values can go outside that range to create overshoot or bounce effects.

What is ease-in-out and when should I use it?

ease-in-out (cubic-bezier(0.42, 0, 0.58, 1)) is slow at both the start and the end of the transition, with a faster middle. It is the symmetric curve for moving an element from one place to another — a drawer sliding in, a modal appearing, or a page transition — because it feels natural at both ends rather than snapping into view or drifting to a halt.

Why can the y values go above 1 or below 0?

The CSS spec clamps x to 0–1 because the curve must be a function of time (each input time maps to exactly one output progress). The y axis represents the output value, which is not required to stay within 0–1. Letting y exceed 1 or dip below 0 creates overshoot: the animation passes its target, then settles back. That is how ease-out-back (0.34, 1.56, 0.64, 1) produces its distinctive bounce.

How do I use the generated value in a CSS transition?

Copy the cubic-bezier() value and use it as the transition-timing-function, for example: transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);. The generator also provides a ready-to-paste transition declaration with a sensible default property and duration, which you can adjust to match your design.

How do I use a custom cubic-bezier in Tailwind CSS?

In Tailwind v4, add it to your @theme block: --ease-*: cubic-bezier(0.34, 1.56, 0.64, 1); then use ease-* in your classes. In Tailwind v3, extend transitionTimingFunction in tailwind.config.js: transitionTimingFunction: { '*': 'cubic-bezier(0.34, 1.56, 0.64, 1)' }. The generator shows both snippets so you can paste the one that matches your setup.

More CSS generators

Color tools

Image tools

Image & SVG tools

Typography & units

More free tools

All free tools