Drag the two points, or type the four numbers, and the preview replays with your curve next to a linear one. Copy the result as a CSS transition, a Tailwind class or a Motion transition.
Presets include the CSS keywords (ease, ease-in, ease-out, ease-in-out) and the curves interfaces use most: a strong ease-out, a snappy curve, a gentle overshoot and an anticipation that pulls back first.
They are two control points, (x1, y1) and (x2, y2). The curve runs from (0, 0) to (1, 1): x is time and y is progress. The first point shapes the start of the motion, the second the end.
x is time, and time cannot run backwards, so CSS rejects x values outside 0 to 1. y is progress and may go outside: above 1 the motion overshoots, below 0 it pulls back before it starts.
ease is cubic-bezier(0.25, 0.1, 0.25, 1), ease-in is (0.42, 0, 1, 1), ease-out is (0, 0, 0.58, 1), ease-in-out is (0.42, 0, 0.58, 1) and linear is (0, 0, 1, 1).
It can overshoot once, when y1 or y2 is above 1, but it cannot swing back and forth. For a real bounce use a spring: the spring generator turns one into a CSS linear() easing.
In Tailwind use an arbitrary value such as ease-[cubic-bezier(0.16,1,0.3,1)]. In Motion pass the four numbers as an array: transition={{ ease: [0.16, 1, 0.3, 1] }}.