Animation Generator

Generate ready-to-use @keyframes CSS animations (fade, slide, bounce, scale, rotate) and adjust duration, easing and repetition.

Settings

Preview

Anim

Code


            
            
            

User guide

A CSS animation pairs a @keyframes rule (the steps) with the animation property (duration, timing, repetition). Prefer animating transform and opacity for performance.

  • Use animation-iteration-count: infinite for a loop.
  • Respect prefers-reduced-motion for accessibility.

FAQ

How do I restart an animation in JS?

Remove then re-add the animation class after a reflow (e.g. by reading element.offsetWidth) to force a restart.

Which properties should I animate for performance?

transform and opacity are GPU-accelerated and don't trigger layout recalculation.