CSS cubic-bezier Editor
Design a cubic-bezier easing curve with a live preview and copy the CSS.
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
- 1Pick a preset or drag the sliders.
- 2Inspect the curve and use the moving demo as an illustration, not a precise timing test.
- 3Copy the timing-function CSS.
- 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
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.
Continue your workflow
Open a related tool to prepare your files or refine the finished result.
- CSS & DesignCSS clamp() Generator
Build a fluid clamp() value for responsive type and spacing.
Open tool - CSS & DesignCSS Gradient Generator
Create a linear CSS gradient with a live preview and copy the CSS.
Open tool - CSS & DesignCSS Box Shadow Generator
Design a CSS box shadow with sliders and copy the CSS.
Open tool
