CSS Easing Curve Editor
Visually design animation easing curves with draggable control points, live preview, and copy CSS
Drag two control points on a visual canvas to shape your CSS cubic-bezier() timing function, then preview the animation in real time and copy the output straight into your stylesheet. No more guessing values, refreshing, and hoping the motion feels right. And everything runs in your browser. Nothing gets uploaded.
How It Works
The canvas shows a standard bezier curve mapped from (0,0) to (1,1). Two control points — P1 and P2 — shape the curve between those anchors. Dragging them changes the four numeric values in cubic-bezier(x1, y1, x2, y2). The ball preview uses requestAnimationFrame to animate with your exact curve, so what you see here is what you get in production.
Examples
Snappy Modal Entrance
A modal that pops in fast then settles into place — the "overshoot and spring back" feel users associate with native apps.
Preset: ease-out-back
P1: (0.34, 1.56)
P2: (0.64, 1.00)
transition-timing-function:
cubic-bezier(0.34, 1.56, 0.64, 1);
Slow-Start Loading Bar
Progress bars that crawl at first then accelerate feel more honest than linear ones. Users perceive them as faster even though the total duration is the same.
Preset: ease-in-quad
P1: (0.55, 0.085)
P2: (0.68, 0.53)
animation-timing-function:
cubic-bezier(0.55, 0.085, 0.68, 0.53);
Custom Tooltip Fade That Doesn't Feel Sluggish
The default ease makes tooltips appear too slowly when paired with a 200ms duration. A custom curve that front-loads the opacity change fixes this — the tooltip is 80% visible within the first 60ms, so it feels instant but still has a soft landing.
Custom curve
P1: (0.16, 1.00)
P2: (0.30, 1.00)
transition-timing-function:
cubic-bezier(0.16, 1, 0.3, 1);
Who Uses This
Dialing in transition curves for buttons, modals, and page transitions without the guess-and-refresh cycle.
Prototyping motion specs and handing developers exact cubic-bezier values instead of vague "make it bouncy" notes.
Creating custom easing for health bars, score counters, and menu animations in web-based games.
Testing how easing curves feel on touch interactions before shipping to production on slower devices.
Common Mistakes
An ease-out curve works great for elements appearing on screen, but it feels wrong when they leave. Exits usually need ease-in — fast start, gradual fade. Pair them intentionally or the motion looks lopsided.
Y values above 1.0 make the animated property temporarily exceed its target. That's fine for transform, but if you're animating width or height with overshoot, the element briefly grows larger than intended and can push surrounding content around. Stick to transform-based animations when using bounce curves.
A dramatic ease-in-out-back curve at 800ms feels fancy in the editor. In a real app, users will click a button and wait almost a full second for the result. Keep interaction animations under 300ms. Reserve longer durations for decorative or background motion only.
Technical Details
- Processing: 100% client-side — Canvas API for rendering, requestAnimationFrame for preview
- Browser Support: Chrome, Firefox, Safari, Edge (any browser with Canvas support)
- Curve Type: Cubic Bezier with fixed endpoints at (0,0) and (1,1)
- Y-Value Range: -2.0 to 2.0 (allows overshoot and bounce effects)
- Offline Ready: No server calls — works without an internet connection
Frequently Asked Questions
What is cubic-bezier in CSS?
cubic-bezier(x1, y1, x2, y2) is a CSS timing function that controls animation speed over time. The four numbers define two control points on a curve from (0,0) to (1,1). Instead of a constant speed, the animation accelerates and decelerates based on the shape of that curve.
Can cubic-bezier values be negative?
The Y values can be negative — that's how you get the "pull back before moving forward" effect. X values have to stay between 0 and 1 because they represent time, and time doesn't go backwards. A negative Y1 creates that subtle windup motion at the start of an animation.
What's the difference between ease and ease-in-out?
Both slow down at the start and end, but ease (the browser default) is asymmetric — it accelerates faster and decelerates more gently. ease-in-out is symmetric, with equal acceleration and deceleration. For most UI work, ease actually feels better because the faster start makes interactions feel responsive.
How do I make a bounce animation with CSS?
Set the Y2 value above 1.0 — something like cubic-bezier(0.34, 1.56, 0.64, 1). The element will overshoot its target and snap back, creating a bounce. For a stronger bounce, push Y2 higher. Just keep in mind that this only works well with transform properties; animating layout properties with overshoot can cause jank.
Is this CSS easing editor free to use?
Yes, completely free with no signup or limits. The editor runs entirely in your browser — no data gets sent anywhere. Bookmark it and it'll even work without an internet connection.