Tools

Home
CSS Box ShadowCSS Border RadiusCSS GlassmorphismCSS Button GeneratorCSS Beautifier

CSS Cubic Bezier Generator

Visual easing function editor with draggable control points and live animation preview

Your files never leave your browser

Curve Editor

cubic-bezier(0.25, 0.10, 0.25, 1.00)
transition: all 0.4s cubic-bezier(0.25, 0.10, 0.25, 1.00);

History

No history yet

Animation Preview

0.8s

Presets

Compare Easings

Current (A)
ease (B)

Drag two control points on a visual curve, watch the animation update instantly, and copy the CSS when it feels right. No more guessing cubic-bezier values or cycling through the five built-in keywords hoping one of them works.

The editor shows your timing curve alongside a live preview — translate, scale, rotate, opacity, whatever you need — so you can judge the motion before touching your stylesheet. And everything runs in your browser. Nothing gets uploaded.

How It Works

Drag Control Points
➔
Preview Animation
➔
Copy CSS Output

A cubic bezier curve is defined by four numbers: X1, Y1, X2, and Y2. These set two control points that bend the timing curve between start (0,0) and end (1,1). The X axis is time, the Y axis is progress. Dragging a control point up makes the animation rush forward early; dragging it down creates an overshoot or bounce. The canvas redraws every curve change instantly, and the preview ball animates in real time so you see the result before copying a single character of code.

Examples

Smooth Modal Entrance

A dialog slides up from the bottom. You want it fast at the start and settling gently at the end — like setting something down on a table.

INPUT
X1: 0.16 Y1: 1 X2: 0.3 Y2: 1
OUTPUT
transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);

Bouncy Button Hover

The button scales up on hover and slightly overshoots before settling. Feels playful.

INPUT
X1: 0.68 Y1: -0.55 X2: 0.27 Y2: 1.55
OUTPUT
transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55);

Sidebar Slide-Out with Deceleration

A navigation panel slides in from the left. It should start quick and slow down at the end so the user can read the first menu item without the panel still moving. This is the kind of curve Material Design calls "standard easing" — aggressive start, soft landing.

INPUT
X1: 0.4 Y1: 0 X2: 0.2 Y2: 1
OUTPUT
transition: left 0.35s cubic-bezier(0.4, 0, 0.2, 1);

Who Uses This

👨‍💻 Frontend Developers

Dialing in transition curves for buttons, modals, dropdowns, and page transitions without trial-and-error in DevTools.

🎨 UI/Motion Designers

Translating After Effects or Figma easing values into exact CSS cubic-bezier notation for dev handoff.

📚 Students

Learning how bezier curves work visually — dragging the handles makes the math click faster than reading about it.

📱 App Developers

Prototyping easing curves for React Native, Flutter, or native iOS/Android animations before writing platform code.

Common Mistakes

Using the same easing for enter and exit

Ease-out is great for elements appearing. But reversing the same curve for exit looks odd — things speed up into nothing. Use ease-in for exits instead, or design a separate curve for each direction.

Setting X values outside 0–1

Y values can go below 0 or above 1 (that is how you get overshoot). X values cannot. CSS will silently ignore the entire declaration if X1 or X2 is negative or greater than 1, and you will stare at a transition that does nothing.

Forgetting duration matters more than the curve

A perfectly shaped bezier curve at 2 seconds feels sluggish no matter what. Most UI transitions should be 150–400ms. The curve shapes the feel; the duration determines if anyone notices it at all.

Technical Details

Frequently Asked Questions

What is cubic-bezier in CSS?

It is a CSS function that defines a custom speed curve for transitions and animations. You give it four numbers — two control points — and the browser calculates how fast or slow the animation progresses at each moment. The built-in keywords like ease and linear are just shortcuts for specific cubic-bezier values.

What does cubic-bezier(0.25, 0.1, 0.25, 1) mean?

Those four numbers are the X and Y coordinates of two control points on a timing curve. The first pair (0.25, 0.1) is control point 1, and the second pair (0.25, 1) is control point 2. This particular curve is actually the default ease value — it starts a little slow, speeds up in the middle, and decelerates at the end.

How do I make a bounce effect with cubic-bezier?

Set Y values outside the 0-1 range. Something like cubic-bezier(0.68, -0.55, 0.27, 1.55) overshoots the target and snaps back, which feels bouncy. For a real multi-bounce animation you will need CSS keyframes, but a single overshoot works great for buttons and small UI elements.

Can I use cubic-bezier with CSS animations (not just transitions)?

Yes. Set animation-timing-function: cubic-bezier(...) on any keyframe animation. You can even apply different bezier curves to individual keyframe segments by putting the timing function inside @keyframes blocks. It works everywhere transitions do.

What is the difference between ease, ease-in, ease-out, and ease-in-out?

ease (the default) starts slow, speeds up, and slows down at the end. ease-in starts slow and finishes fast — good for elements leaving the screen. ease-out starts fast and slows down — good for elements entering. ease-in-out is symmetric, slow on both ends. Each one is just a preset cubic-bezier value, and this tool lets you see the actual curves behind them.

Share: