Cubic-Bezier Editor.
Drag the handles of a CSS cubic-bezier easing curve, preview the motion and copy the timing function.
Runs in your browserGreen: your curve. Gray: linear.
About Cubic-Bezier Editor
The Cubic-Bezier Editor is a visual editor for CSS easing curves, the timing functions that decide how a transition or animation speeds up and slows down. Drag the two control points on the graph and a preview box plays the motion with your curve next to a linear reference, so you can feel the difference between a snappy ease-out and a lazy ease-in. Paste an existing cubic-bezier() value or type a name to load it: the five CSS keywords (ease, ease-in, ease-out, ease-in-out, linear) and the popular easings.net set such as easeOutCubic, easeInOutQuart and easeOutBack are built in. The output is a ready transition declaration, the bare timing function, the closest named easing, and a progress table showing how far the animation has travelled at each tenth of its duration. The y values may go below 0 or above 1 to create anticipation and overshoot; the editor flags curves that do, because an overshooting opacity or color is clamped and looks broken. For example, cubic-bezier(0.34, 1.56, 0.64, 1) overshoots to about 110% before settling, a playful effect for buttons and toasts. Common mistakes are x values outside 0 to 1 (invalid, the browser drops the declaration), using ease-in for elements entering the screen (they should decelerate, so use ease-out) and long durations on frequent UI feedback. Everything runs in your browser.
How to Use
- Drag the two handles or paste a cubic-bezier() value or easing name.
- Press Play to compare the motion with a linear transition.
- Copy the transition declaration or the timing function.
Frequently Asked Questions
Why must x1 and x2 stay between 0 and 1?
The x axis is time. Values outside 0 to 1 would make time run backwards, so the CSS specification rejects them. The y axis (progress) can go beyond 0 and 1.
Which easing should I use for UI motion?
Elements entering the screen usually use ease-out (fast start, gentle stop), elements leaving use ease-in, and elements moving on screen use ease-in-out.
Can I use these curves in JavaScript?
Yes. The Web Animations API accepts the same cubic-bezier() string as its easing option.
Is anything uploaded?
No. The editor runs in your browser.
Related Tools
Build linear, radial and conic CSS gradients with a live preview, OKLCH interpolation and Tailwind output.
Drag polygon points or pick a preset shape and copy the CSS clip-path for images and sections.
Design soft, layered or inset CSS box-shadows with a live preview and Tailwind output.
Preview SVG path data, drag its points, convert between absolute and relative commands, minify, scale and measure it.
Experiment with flexbox and CSS grid container properties on live boxes and copy the CSS or Tailwind classes.
Set each corner radius, including elliptical corners, and copy the shortest CSS or Tailwind classes.