CSS Animation Generator

Copy-paste CSS keyframe animations

Ad placeholder (leaderboard)

This generator produces ready-to-use CSS keyframe animations for the most common UI effects. Tune the timing, preview it live, and copy clean CSS you can drop straight into any project — no animation library or JavaScript needed.

How it works

A CSS animation has two parts: a @keyframes block that describes the steps, and an animation declaration that attaches it to an element. This tool builds both.

For each effect it writes the appropriate keyframe steps. A fade animates opacity from 0 to 1; a slide combines opacity with a translateX or translateY offset that returns to 0; bounce and shake use multi-stop transform steps; spin rotates a full 360°; and pulse scales between 1 and 1.08. It then emits an animation-* set using your duration, delay, timing function, and iteration count, with animation-fill-mode: both so the element holds its start and end states.

The exported class is gera-animated, for example:

.gera-animated {
  animation-name: gera-fade;
  animation-duration: 800ms;
  animation-timing-function: ease;
  animation-iteration-count: 1;
  animation-fill-mode: both;
}

Tips and notes

For entrance effects (fade, slide) keep the iteration count at 1 and use an ease-out timing function so motion settles naturally. For loaders use spin or pulse with infinite and linear. The cubic-bezier overshoot option adds a springy feel to slide and bounce. Respect users who prefer reduced motion by wrapping the class in a @media (prefers-reduced-motion: no-preference) query in your own stylesheet.

Ad placeholder (rectangle)