CSS Cubic Bezier Generator

Drag the control points to design custom easing curves for CSS animations.

🎨 Curve Editor
0 1 0 1
📋 Output
cubic-bezier(0.25, 0.1, 0.25, 1)
✨ Presets
🎯 Animation Preview

Click "Play Preview" to see the easing applied to a 1.5s animation.

📘 How it works

A cubic-bezier curve is defined by four points: P0(0,0), P1(x1,y1), P2(x2,y2), P3(1,1). For any time t in [0,1], the curve is computed as B(t) = (1−t)³P0 + 3(1−t)²tP1 + 3(1−t)t²P2 + t³P3. In CSS, the x-axis represents input time (0% to 100% of duration), and the y-axis represents output progress. X values must stay in [0,1] for valid timing, while Y values can exceed this range to produce overshoot or bounce effects.

❓ FAQ
What are the valid ranges for cubic-bezier x and y values?
The x values (x1, x2) must be between 0 and 1. The y values (y1, y2) can go outside the 0–1 range to create overshoot or bounce effects.
How does cubic-bezier affect CSS animations?
cubic-bezier() defines the pacing of an animation over time. The curve maps input time (x-axis, 0 to 1) to output progress (y-axis, 0 to 1), controlling acceleration and deceleration.
What is the difference between ease, ease-in, and ease-out?
ease (0.25, 0.1, 0.25, 1) starts slow, speeds up, then slows. ease-in (0.42, 0, 1, 1) starts slow and accelerates. ease-out (0, 0, 0.58, 1) starts fast and decelerates.
🔗 Related Tools
Copied to clipboard!
Free tools by TUNA — energy supply from vetted manufacturers