What do the four numbers in cubic-bezier() mean?
The four numbers are the x and y coordinates of two control points: cubic-bezier(x1, y1, x2, y2). The curve starts at (0, 0) and ends at (1, 1). The first control point (x1, y1) shapes the initial acceleration; the second (x2, y2) shapes the deceleration into the finish. x values must stay between 0 and 1; y values can go outside that range to create overshoot or bounce effects.
What is ease-in-out and when should I use it?
ease-in-out (cubic-bezier(0.42, 0, 0.58, 1)) is slow at both the start and the end of the transition, with a faster middle. It is the symmetric curve for moving an element from one place to another — a drawer sliding in, a modal appearing, or a page transition — because it feels natural at both ends rather than snapping into view or drifting to a halt.
Why can the y values go above 1 or below 0?
The CSS spec clamps x to 0–1 because the curve must be a function of time (each input time maps to exactly one output progress). The y axis represents the output value, which is not required to stay within 0–1. Letting y exceed 1 or dip below 0 creates overshoot: the animation passes its target, then settles back. That is how ease-out-back (0.34, 1.56, 0.64, 1) produces its distinctive bounce.
How do I use the generated value in a CSS transition?
Copy the cubic-bezier() value and use it as the transition-timing-function, for example: transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);. The generator also provides a ready-to-paste transition declaration with a sensible default property and duration, which you can adjust to match your design.
How do I use a custom cubic-bezier in Tailwind CSS?
In Tailwind v4, add it to your @theme block: --ease-*: cubic-bezier(0.34, 1.56, 0.64, 1); then use ease-* in your classes. In Tailwind v3, extend transitionTimingFunction in tailwind.config.js: transitionTimingFunction: { '*': 'cubic-bezier(0.34, 1.56, 0.64, 1)' }. The generator shows both snippets so you can paste the one that matches your setup.