Skip to content

CSS Animation Generator: Keyframes with Live Preview

Create CSS keyframe animations in seconds: fade, slide, zoom, bounce, shake, pulse and more. Set duration, delay, easing and repeats, then copy the CSS.

Hello

CSS code

How to use the CSS Animation Generator

  1. Pick an animation such as Fade in up, Bounce or Pulse.
  2. Set the duration, delay, timing function, number of repeats, direction and fill mode.
  3. Watch the preview, press Replay to see it again, and rename the class to fit your project.
  4. Copy the @keyframes rule and the class, then add the class to any element.

Tips

  • Entrance animations (fade, slide, zoom) usually feel best between 300 and 800 ms with ease-out.
  • Use both as the fill mode so the element starts hidden and stays in its final state.
  • Keep the prefers-reduced-motion rule: some people get dizzy from movement on screen.
  • Animate transform and opacity: they are cheap for the browser and stay smooth.

Need a custom easing curve? Build one with the cubic-bezier generator and paste it into the timing function.

Everything runs in your browser: nothing you type or paste is sent to a server.

More CSS tools