Skip to content
ToolsOnDuty - free online tools

Search tools

Loading tool search...

CSS & Design

CSS cubic-bezier Editor

Design a cubic-bezier easing curve with a live preview and copy the CSS.

Free browser toolRuns in your browserNo sign-up
Live demo
cubic-bezier(0.25, 0.1, 0.25, 1)

Drag the sliders to shape the easing curve; y values can go below 0 or above 1 for a bounce or overshoot.

About the CSS cubic-bezier Editor

CSS transitions and animations use an easing function to control how motion accelerates. cubic-bezier() gives you full control over that curve.

This editor lets you shape the curve with sliders or presets, shows the curve and an illustrative motion demo, and hands you the exact cubic-bezier() value.

The y control points can go beyond 0 to 1 to create an overshoot.

Confirm the final timing in your own browser transition. The on-page moving dot is illustrative rather than an exact CSS timing simulation, and its displayed position is clipped to the track, so it does not fully show overshoot.

Key features

  • Sliders for all four control points
  • Common presets (ease, ease-in-out, linear)
  • Live curve and motion preview
  • Copy the cubic-bezier() CSS

How to use

  1. 1Pick a preset or drag the sliders.
  2. 2Inspect the curve and use the moving demo as an illustration, not a precise timing test.
  3. 3Copy the timing-function CSS.
  4. 4Apply the declaration to an element with a transition property and duration, then test the actual motion. Use animation-timing-function instead when applying the curve to keyframe animations.

Examples

Ease preset
Output: cubic-bezier(0.25, 0.1, 0.25, 1)

The default ease curve starts and ends gently for natural motion.

Frequently asked questions

What do the four numbers mean?
They are the x and y coordinates of two control points, x1 y1 x2 y2. x stays between 0 and 1 (time); y can go outside that range for overshoot.
How do I use the value?
Put it in transition-timing-function or animation-timing-function, for example transition-timing-function: cubic-bezier(0.25, 0.1, 0.25, 1);.
Can I make a bounce?
Yes. Push a y value above 1 or below 0 to make the animation overshoot and settle, which reads as a bounce.

Open a related tool to prepare your files or refine the finished result.