Cubic Bezier Curve Generator
Design a CSS easing function by dragging two control points, preview it, and copy the transition or animation code.
Purple: your curve. Grey: linear, for comparison.
Design a CSS easing function by dragging two control points, preview it, and copy the transition or animation code.
Purple: your curve. Grey: linear, for comparison.
cubic-bezier() value works in transition, animation-timing-function and the Web Animations API.The horizontal axis is time and the vertical axis is progress, both from 0 to 1. A steep section means fast movement and a flat section means slow movement. The curve always starts at (0, 0) and ends at (1, 1); only the two control points in between are yours to set. X values must stay between 0 and 1, but Y values may go outside that range: a y above 1 makes the animation overshoot its target and come back (the "back" presets), and a y below 0 makes it pull back first, like an anticipation in cartoon animation.
| Name | cubic-bezier() | Feels like |
|---|---|---|
ease (CSS default) | 0.25, 0.1, 0.25, 1 | Quick start, gentle stop |
ease-in | 0.42, 0, 1, 1 | Slow start; for elements leaving the screen |
ease-out | 0, 0, 0.58, 1 | Slow finish; for elements entering |
ease-in-out | 0.42, 0, 0.58, 1 | Symmetric; for elements moving across the screen |
| easeOutQuint | 0.22, 1, 0.36, 1 | Snappy, modern UI motion |
| easeOutBack | 0.34, 1.56, 0.64, 1 | Slight overshoot; playful pop-ins |
| Material standard | 0.2, 0, 0, 1 | Google Material 3 standard easing |
transform and opacity rather than left or width, so the browser can run the animation on the GPU.@media (prefers-reduced-motion: no-preference).You can share a curve with a link like ?v=0.34,1.56,0.64,1.
The CSS specification requires x1 and x2 to be between 0 and 1, because time cannot run backwards. Browsers ignore a cubic-bezier() with x values outside that range.
It can overshoot once (y above 1), but a real bounce or spring with several oscillations needs keyframes or the CSS linear() easing function with many points.
Use an arbitrary value: ease-[cubic-bezier(0.34,1.56,0.64,1)], or add it to transitionTimingFunction in your Tailwind config.