A CSS animation cubic bezier generator creates a cubic-bezier() timing function that controls how animation progress changes over time; it does not create the keyframes, duration, or complete animation.
The CSS Cubic Bezier Generator handles that timing decision. Choose one of five CSS easing presets or enter x1, y1, x2, and y2. The result updates immediately in a graph, an exact transition-timing-function declaration, five input-to-output samples, and a moving preview, allowing you to inspect the curve before copying it.

Separate the timing function from the animation
A CSS cubic-bezier curve always starts at the progress point (0, 0) and ends at (1, 1). The two editable points are its intermediate control points. The copy action produces a complete declaration such as transition-timing-function: cubic-bezier(0, 0, 1, 1);, including the semicolon. Choosing a keyword does not copy the word itself: the buttons load standardized control points, while the visible declaration always exposes all four numbers.
For a CSS animation, the generated cubic-bezier() function can be assigned to animation-timing-function, while the keyframes and other animation settings remain separate work. A timing function describes how progress changes; it does not decide what moves, how far it moves, how long it takes, or how many times it repeats. The CSS Easing Functions Level 1 specification defines the syntax and keyword equivalents used by the generator.
Read x and y as different kinds of progress
The x coordinates represent input-time positions, so CSS requires x1 and x2 to remain within the closed range from 0 to 1. The interface constrains those inputs, and the calculation independently validates the constraints before producing output. The y coordinates represent output progress instead. The tool accepts finite y values from -10 through 10; negative values can create anticipation below the starting output, while values above 1 can create overshoot. Those y control values are valid even when the resulting motion leaves the ordinary 0-to-1 progress band.
This distinction prevents a common mistake: y is not an amount of elapsed time. The MDN cubic-bezier() reference describes x as input progress and y as output progress. Read the graph as a mapping from elapsed input to the resulting animated value, not as a timeline whose vertical position represents the clock.
Build, inspect, and copy a curve
- Set the starting curve. Choose a standard easing preset or enter x1, y1, x2, and y2. The x fields remain within the valid CSS range of 0 to 1, and the y fields accept finite values from -10 through 10. The underlying calculation validates those constraints independently before it produces output.
- Inspect the behavior. Review the graph, the five numeric samples at input progress 0, 0.25, 0.5, 0.75, and 1, and the Run preview. The preview toggles a circle between two horizontal positions with a 900-millisecond transform transition using the exact generated easing string. Repeated runs let you compare forward and reverse motion.
- Copy and test the declaration. Copy the complete transition-timing-function declaration, including its semicolon. Copying requests browser clipboard permission. If browser policy denies access, the declaration remains visible and selectable, and the status does not claim that the copy succeeded. Paste the declaration into your stylesheet and test the real property, distance, and duration.
The preview is a timing check rather than a final performance test. A curve that appears balanced on the preview circle can feel different on a larger element, a longer movement path, or an interface with more rendering work.
Compare the five built-in easing presets
The presets provide standardized reference curves defined by CSS Easing Functions Level 1:
| Preset | Control points | Motion shape |
|---|---|---|
| linear | 0, 0, 1, 1 | Even output progression for equal input progress |
| ease | 0.25, 0.1, 0.75, 1 | Gentle acceleration followed by gentle deceleration |
| ease-in | 0.42, 0, 1, 1 | A slow start followed by a faster rise toward the end |
| ease-out | 0, 0, 0.58, 1 | A quick start followed by a gentle finish |
| ease-in-out | 0.42, 0, 0.58, 1 | A slow start and finish with faster movement through the middle |
These are reference shapes, not automatic interface recommendations. When you select a preset, the generator exposes its equivalent numeric function so later comparisons and edits remain explicit. Calculations retain full JavaScript numeric precision, while the serialized declaration rounds its numbers to three decimal places.
Interpret progress samples without confusing time and geometry
The sample table answers a question the control-point diagram alone cannot: how far has the animated value progressed when a particular fraction of the input duration has elapsed? For each requested input progress, the solver finds the curve parameter that produces that x coordinate and then evaluates y. It uses bounded Newton iterations and finishes with bisection when necessary. This is why the 50% sample does not necessarily equal the curve's y value at parameter t = 0.5 when the control points make x(t) differ from elapsed input progress.
The graph keeps a stable zero-to-one square so ordinary timing curves remain easy to compare. A deliberately extreme y value can extend outside that visible frame, but the sample table and Run preview continue to use the actual computed easing rather than clipped values. Inspect both when overshoot matters. A large overshoot can make a control appear to reverse, leave its container, or reveal content that was expected to remain clipped.
Apply the easing to a CSS animation
- Define the animated states separately. Create or obtain the required @keyframes, or use an existing animation. The generator does not produce keyframes, so the motion itself must already have a clear beginning and end.
- Set the animation timing function. Use the four-number cubic-bezier() function from the generated declaration with animation-timing-function. For example, the ease-in-out preset can be applied as animation-timing-function: cubic-bezier(0.42, 0, 0.58, 1);.
- Complete the animation settings. Set animation-name, duration, delay, fill mode, and iteration count separately. Those values are not included in the generated timing-function declaration, and they can materially change how the curve feels.
- Test the animation in context. Run it at its intended distance and duration on the actual property. Check the beginning, middle, end, reverse action, and any state triggered while the animation is still moving.
For a transition, use the complete copied transition-timing-function declaration as-is. For a keyframe animation, place the same cubic-bezier() function in animation-timing-function. The generator intentionally exposes the transition declaration, so confirm that the property name matches the context in which you are applying it.
Test the motion in its final interface
The Run preview demonstrates timing with a 900-millisecond transform. A production animation can behave differently because of its property, distance, duration, rendering cost, input device, or surrounding motion. Test the copied declaration in the final interface rather than treating the preview as evidence that the animation will feel right everywhere.
- Check the curve on the actual animated property and over the intended movement distance.
- Observe focus and pointer behavior while the element is transitioning, and avoid rapid or confusing oscillation.
- Inspect containers and clipping rules when the curve includes substantial anticipation or overshoot.
- Respect reduced-motion preferences and make important state changes understandable without motion when animation is not essential.
CSS permits technically valid curves that still behave poorly in an interface. Overshoot may move a control backward or outside its container, while an aggressive timing shape can make the relationship between an action and its result harder to understand. Validity confirms the syntax, not the accessibility or suitability of the motion.
Use the declaration within the tool's scope
All calculation happens in the browser. No curve, CSS, or interaction data is uploaded, stored, or sent to an animation service. The generator remains focused on one cubic-bezier timing function so the resulting declaration is easy to inspect, compare, modify, and audit.
It does not generate keyframes, spring physics, linear() stop lists, steps(), duration, delay, iteration count, or a full transition shorthand. Those omissions are deliberate: the copied output tells you exactly which timing function will be applied, while the surrounding animation remains under your control.
Related reading: CSS Toggle Button Generator: A Control Reference.
Related reading: Build, Inspect, and Validate a CSS Triangle.