← CSS Easing Bezier Generator

CSS Easing Bezier Generator: Who It's For and Why

Reviewed by the OnlineFree.app team · Updated

Key points

  • CSS Easing Bezier Generator turns two dragged handles into copyable CSS, Tailwind and Framer Motion easing code.
  • The x values of both control points are locked to 0–1; y runs from -0.5 to 1.5 for overshoot and anticipation.
  • Duration is set separately from 50 to 3000 ms and is emitted into every generated snippet.
  • Spring mode approximates physics with linear() stops for CSS but exports a real spring for Framer Motion.
  • Always preview the easing on the property you will actually animate, and honour prefers-reduced-motion.

What is CSS Easing Bezier Generator?

CSS Easing Bezier Generator is a one-screen, browser-based playground that turns two dragged control handles into a production-ready cubic-bezier timing function, with copyable code for CSS, Tailwind and Framer Motion. It needs no sign-up and no dependencies, and nothing leaves the browser.

The screen holds three inputs and three outputs. The inputs are the curve editor (or spring sliders), a duration between 50 and 3000 ms, and a preview property chosen from transform: translateX, transform: scale, opacity and clip-path. The outputs are a replayable animation stage with an optional ghost trail, plus tabbed code blocks with a copy button per tab.

Because the curve math runs entirely in JavaScript inside the page, the numbers you drag never reach a server. That is the practical reason to keep it open while working on an unannounced feature or a client design that has not shipped yet.

Who benefits most from it

Front-end developers benefit first, because a design handoff that says "make it feel snappy" is not implementable. The editor converts that adjective into four numbers, and the code tabs convert those four numbers into a one-line change. Dragging a handle to see the result takes a second or two; guessing values and re-running a build does not.

Product and interaction designers benefit because they can judge motion visually rather than numerically. The preview property selector matters here: a curve that feels crisp on transform: translateX often feels sluggish on opacity, so we let you switch the property until the preview matches the element you actually care about.

Small teams without a motion library benefit from the copy-paste path — the same curve pasted into a Tailwind config and into a Framer Motion transition, compared side by side. Teams shipping playful micro-interactions often pair the motion work with the 8-Bit SFX Generator for the audio half of the same interaction.

How do you go from blank curve to shipped easing?

Start with the preview property, not the handles. Pick the property your real component animates — translateX for drawers and toasts, scale for buttons and cards, opacity for fades, clip-path for reveals. Judging a curve on the wrong property is the single most common mistake we see.

Set the duration next. The default is 600 ms, which suits a large panel or a sheet sliding in; short hover and press feedback usually wants something closer to the 50–300 ms end of the slider. Duration is emitted in the generated code, so set it here rather than editing it later.

Then drag P1 and P2. The horizontal position (x, time) is locked to 0–1 so the curve stays a valid timing function; the vertical position (y, progress) can travel from -0.5 to 1.5, which is where overshoot and anticipation come from. Press Replay after each adjustment — the loop toggle is off by default so every read of the easing is deliberate.

Finally, copy from the CSS, Tailwind or Framer Motion tab. That is five steps in total, and none of them require a build step or an account.

What do the four cubic-bezier numbers mean?

A cubic-bezier timing function has four numbers: cubic-bezier(x1, y1, x2, y2). They are the coordinates of the two draggable control points, P1 and P2, sitting between the fixed start point (0, 0) and end point (1, 1). Read x as time and y as progress toward the final value.

Familiar curves give the intuition. The CSS ease-out keyword is cubic-bezier(0, 0, 0.58, 1) — the first handle sits on the y-axis, so progress jumps early and then settles. ease-in-out is cubic-bezier(0.42, 0, 0.58, 1), a symmetric S-curve. Pulling P1 to the right delays the start; pushing P2 left front-loads the finish.

The formal rules live in the W3C CSS Easing Functions specification, which is worth a skim: it defines why x must stay inside 0–1 while y is free to exceed it. The MDN easing-function reference is the quicker lookup when you just need the keyword equivalents.

Spring presets and what they actually export

Switching the curve type to spring replaces the graph with two sliders: stiffness from 40 to 400 and damping from 5 to 40. These are sampled into a CSS linear() stop list, with a closest cubic-bezier approximation offered as the fallback. That sampling is the honest part of the tool — a bezier cannot describe a spring, so it is approximated, not reproduced.

The Framer Motion tab is different in kind: it emits a real spring object with type: 'spring', stiffness and damping, which runs on Framer's own physics rather than on CSS. The practical consequence is that the Framer output and the CSS output are not the same motion. If both platforms ship, check each one on the target browser rather than assuming parity.

Where the approximation shows up most is bounce. A cubic-bezier can overshoot once and come back, but it cannot oscillate; anything that settles in two or three visible steps needs the linear() output or a genuine spring runtime.

Copy-paste limits to check before you ship

Duration is not part of the timing function, so the snippet only covers the easing. Keep the duration, delay and animated property together in your own code, and re-read the number you set in the slider rather than retyping it from memory.

For Tailwind, the theme.extend.transitionTiming route gives you a named easing, while the arbitrary form ease-[cubic-bezier(0.34,1.56,0.64,1)] is quicker for a one-off. Arbitrary values are easy to break with stray spaces — the copy button exists to avoid that class of typo.

Two checks belong on every overshoot curve. First, y values above 1 on opacity look like a flash rather than a bounce, so preview the property you are actually animating. Second, honour prefers-reduced-motion in the surrounding CSS; the generated easing is a visual flourish, not a required cue. When a number matters, verify it against the specification — and if you want other no-install utilities, the free online tools on OnlineFree.app share the same browser-only model.

Frequently asked questions

Is CSS Easing Bezier Generator free and private to use?

Yes. It is free, requires no account, and runs entirely in the browser, so curve values, durations and the code you copy never touch a server. That makes it safe for unannounced features and client work under NDA. As with any browser tool, keep the tab open or re-create the curve later, since nothing is stored for you.

Can I use the output in Tailwind CSS and Framer Motion?

Yes, the tool has a tab for each. The Tailwind tab gives you either a theme.extend.transitionTiming entry or an arbitrary class such as ease-[cubic-bezier(0.34,1.56,0.64,1)]. The Framer Motion tab emits a transition object with duration and ease, or a spring object with stiffness and damping when you are in spring mode.

What do the four numbers in cubic-bezier mean?

They are the coordinates of the two control points, cubic-bezier(x1, y1, x2, y2). x is time and must stay between 0 and 1; y is progress and may exceed 1 for overshoot. In the editor, the first pair is the P1 handle and the second pair is P2, both draggable on the graph.

Can a cubic-bezier curve bounce or overshoot?

It can overshoot once but it cannot bounce. Setting a y value above 1 makes progress exceed the final value before settling back, which reads as a single overshoot. Repeated oscillation requires a spring, so use the tool's spring mode and its linear() output, or a real spring runtime such as Framer Motion.

Does the spring mode produce identical CSS and Framer Motion motion?

No. Spring mode samples the stiffness and damping sliders into a CSS linear() stop list or a closest cubic-bezier approximation, which only imitates the spring. The Framer Motion tab exports a genuine physics spring instead. If both platforms ship the same interaction, test each one in the browser rather than assuming they match.

References

Try CSS Easing Bezier Generator free — no sign-up, works in your browser
Open the tool →

More free tools

Step-by-step guides in our blog & guides.

Exemple De Calcul De Probabilité Word Frequency Counter Random Number Generator Wheel App Online Word Counter And Character Counter Restaurant Food Cost Rate Calculator India Sales Tax Calculator (GST/VAT) Barcode Generator Password Generator Strong Custom PRD build Passport Size Photo Size Generator