Free tool
Cubic-bezier generator.
easeOutQuint
linear
ease
transition: transform 1s cubic-bezier(0.22, 1, 0.36, 1);<div className="transition-transform duration-[1000ms] ease-[cubic-bezier(0.22,1,0.36,1)]" />
/* or name it once in your CSS (Tailwind v4) and use ease-easeOutQuint */
@theme {
--ease-easeOutQuint: cubic-bezier(0.22, 1, 0.36, 1);
}<motion.div
animate={{ x: 240 }}
transition={{ duration: 1, ease: [0.22, 1, 0.36, 1] }}
/>Reading the curve
Time runs left to right and progress runs bottom to top. A steep start means the animation moves quickly at first; a flat end means it eases gently into place. Pulling a handle above the box makes the animation overshoot its target and come back, which is how "back" easings get their bounce.
Which curve to use
For things entering the screen, an ease-out curve such as easeOutQuint feels responsive: it moves straight away and settles softly. Use ease-in for things leaving, and ease-in-out for things moving from one place on screen to another. Linear is best kept for continuous motion, like spinners and marquees.
Questions
What is a cubic-bezier easing?
A curve defined by four numbers, cubic-bezier(x1, y1, x2, y2): the two handle positions. CSS uses it to decide how fast an animation progresses at each moment. ease, ease-in, ease-out and ease-in-out are all cubic-bezier curves with names.
How do I use a custom easing in Tailwind CSS?
Use an arbitrary value such as ease-[cubic-bezier(0.22,1,0.36,1)], or name it once in your CSS with @theme { --ease-out-quint: cubic-bezier(0.22, 1, 0.36, 1); } (Tailwind v4) and use ease-out-quint anywhere.
How do I use it with Motion (Framer Motion)?
Pass the four numbers as an array: transition={{ duration: 0.6, ease: [0.22, 1, 0.36, 1] }}.
Can a cubic-bezier make a spring?
Only roughly: a cubic-bezier can overshoot once, but not wobble. For a real spring, use the spring generator, which also gives you a CSS linear() easing that wobbles properly.