CSS Animation Generator

Build a CSS keyframe animation — fade, slide, bounce or spin — with a live preview. Control duration, delay, iteration count and a custom cubic-bezier() easing curve, then copy the generated @keyframes and animation CSS or the equivalent Tailwind classes.

How to use the CSS Animation Generator

  1. Pick an animation type. Choose fade, slide, bounce, spin or another built-in animation preset.
  2. Set duration and delay. Control how long the animation runs and how long it waits before starting.
  3. Fine-tune the easing curve. Adjust the cubic-bezier control points for a custom acceleration curve, or use a standard easing.
  4. Copy the CSS or Tailwind classes. Copy the generated @keyframes and animation CSS, or switch to the equivalent Tailwind classes.

Frequently asked questions

How do I create a CSS keyframe animation?

Define an @keyframes rule with the states you want, then apply it with the animation property (name, duration, easing, delay, iteration count). This generator builds both for you visually.

What is the difference between animation and transition in CSS?

transition animates a property change between two states triggered by something (like :hover); animation runs independently via @keyframes and can have multiple steps, loop, and run automatically on load.

How do I use a custom cubic-bezier easing curve?

cubic-bezier(x1, y1, x2, y2) defines a custom acceleration curve for the animation-timing-function. This generator lets you drag the four control points and preview the result live.

How do I make a CSS animation loop infinitely?

Set animation-iteration-count: infinite. This generator has an infinite toggle alongside a fixed iteration count option.

How do I create a fade-in animation in CSS?

Animate opacity from 0 to 1 inside an @keyframes rule, typically with ease-out timing. Pick the fade preset here and adjust duration/delay to match your use case.

Can I export the animation as Tailwind classes?

Yes. Toggle Tailwind mode to get the closest matching Tailwind animation utility classes instead of raw @keyframes CSS.

Is this CSS animation generator free?

Yes — completely free with no sign-up, and it runs entirely in your browser.

Does it support a dark mode preview?

Yes, toggle the light/dark preview to see how the animation reads on both backgrounds.