Guide

THE TOOLBOX / ACCESSIBILITY & CSS MOTION

CSS Cubic-Bezier Generator —
Visual Easing Curve, Motion Race & Keyframes Studio.

Craft silky UI transitions and playful spring-overshoot curves visually—race your custom cubic-bezier() live against CSS ease and linear, then copy production-ready CSS in one click.

Easing:
cubic-bezier(0.22, 1.00, 0.36, 1.00)650ms
0.22
1.00
0.36
1.00
650 ms
Live Motion Comparison Race
Your Custom Curvecubic-bezier(0.22, 1.00, 0.36, 1.00)
Standard CSS easeease
Linear (reference)linear
CSS Transition
transition: transform 650ms cubic-bezier(0.22, 1.00, 0.36, 1.00), opacity 650ms cubic-bezier(0.22, 1.00, 0.36, 1.00);
CSS @keyframes Snippet
@keyframes smoothReveal {
  from { opacity: 0; transform: translateY(16px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.animate-reveal {
  animation: smoothReveal 650ms cubic-bezier(0.22, 1.00, 0.36, 1.00) both;
}

POPULAR UI EASING CURVES

Production-Ready CSS cubic-bezier() Reference Table.

Preset NameCSS FunctionBest Component Use
Apple / Quint Outcubic-bezier(0.22, 1, 0.36, 1)Drawers, cards, smooth modal entrances
Material Standardcubic-bezier(0.4, 0, 0.2, 1)In-place toggles, tabs, accordion height
Back / Spring Outcubic-bezier(0.34, 1.56, 0.64, 1)Badges, tooltips, playful pop-ins
Expo Outcubic-bezier(0.16, 1, 0.3, 1)Command palettes & instant snappy reveals

2. GPU-Accelerated Properties

Animate transform and opacity rather than top/left/width to stay locked at 60–120fps on mobile devices.

Frequently Asked Questions

What do the four numbers in CSS cubic-bezier(x1, y1, x2, y2) mean?

They define two control handles P1(x1, y1) and P2(x2, y2) between start (0,0) and end (1,1). The X coordinates represent time (must stay between 0 and 1), while the Y coordinates represent animation progression (and can exceed 1 or drop below 0 to create spring overshoot or anticipation).

What cubic-bezier curve feels most natural for UI modals and drawers?

An ease-out curve like cubic-bezier(0.22, 1, 0.36, 1) or cubic-bezier(0.16, 1, 0.3, 1) responds immediately on click and glides to a gentle stop—making interfaces feel faster than default CSS ease.

How do I create a spring bounce effect with cubic-bezier?

Set y2 (or y1) greater than 1.0—for example cubic-bezier(0.34, 1.56, 0.64, 1). Pushing Y above 1 makes the element overshoot its final position slightly before snapping cleanly back into place.

What is the ideal duration for micro-interactions vs. page transitions?

Hover states and toggles feel crispest at 150–250ms, drawers and modal entrances shine at 300–450ms, and larger layout choreography rarely needs more than 600ms.

How does CSS cubic-bezier compare to the newer CSS linear() easing function?

cubic-bezier() handles smooth single-overshoot curves with universal browser support, whereas CSS linear() supports multi-bounce damped physics springs by listing many intermediate stops.

Should I respect prefers-reduced-motion when shipping animations?

Yes. Wrap non-essential transform animations in @media (prefers-reduced-motion: reduce) to fall back to subtle instant fades for motion-sensitive users.