Choose between cubic-bezier() and linear() springs
Open CSS Cubic-Bezier & Spring Generator and watch curve-locked preset tracers glide across Overshoot Spring Pop, iOS Silk Decelerate, Pull-Back Anticipation, and multi-stop CSS linear() springs.
Click Customize to open the interactive P1 & P2 handle graph and Sample Animation Preview.
Drag P1/P2 handles on the graph and race against linear
Drag the green P1 and rose P2 handles directly on the Time vs Progress coordinate grid—or click quick chips (linear, ease, ease-in, ease-out, ease-in-out)—and watch the Sample Animation Preview fire automatically on release.
Click ▶ Play (or toggle Loop) to compare your custom curve side by side against the constant-speed Linear Reference lane.
Curves with low X1 and high Y1 (cubic-bezier(0.16, 1, 0.3, 1)) start instantaneously on click so interfaces feel ultra-responsive.
While simple fades use ~200ms, linear(...) springs need 500ms–900ms so the rebound oscillations have time to settle naturally.
Copy reusable easing tokens into :root
Check the duration slider in Shadow (200ms–350ms for micro-UI; 500ms–900ms for sheets and springs).
Copy :root { --ease-custom: ... } variables or Tailwind [transition-timing-function:...] classes.
Ready to use CSS Cubic-Bezier & Spring Generator?
Open CSS Cubic-Bezier & Spring Generator in your browser—100% private on your device with zero sign-up and copy-ready CSS, HTML, :root tokens, and Tailwind code. Related CSS studios: CSS Keyframe Animation Generator, CSS Hover Effects Generator, CSS Loader & Spinner Generator.
CSS Cubic-Bezier & Spring Generator FAQs
Practical frontend details for accessible, cross-browser CSS output.
Why can't X1 or X2 go outside 0 to 1 in cubic-bezier()?
The X axis represents time progression (0% to 100%), which must stay monotonic—only the Y progress axis can dip below 0 or exceed 1.
Is CSS linear(...) supported in all modern browsers?
Yes—Chrome 113+, Edge 113+, Firefox 112+, and Safari 17.2+ all support multi-stop linear(...) easing natively.
Can I use the same easing curve in @keyframes animations?
Yes—pass the exact cubic-bezier(...) or linear(...) value as animation-timing-function.