How to use CSS Animation Generator

Choose an animation and its timing, preview it, and copy the @keyframes and animation CSS.

  1. Adjust the controls — the preview updates live.
  2. Copy the generated CSS.
  3. Paste it into your stylesheet.

About CSS Animation Generator

A CSS animation pairs an @keyframes rule with the animation property, which sets the duration, delay, easing, repeat count and direction.

Presets cover fades, slides, zooms, bounces, pulses, spins and shakes. The generated CSS ends with a prefers-reduced-motion rule that turns the animation off for visitors who ask their system for less motion.

Questions

Which properties animate most smoothly?

transform and opacity. Animating width, height or top makes the browser recalculate layout on every frame.

How do I make an animation play once?

Set the repeat count to 1; choose infinite to loop.

Ratings & reviews

No ratings yet. Signed-in users can rate this app.