UtilDojo

Popular

Menu

CSS Animation Generator — Keyframes Made Easy

  • This tool runs entirely in your browser. Nothing you enter or upload is sent to a server.

Preview

Slide up

Timing

0.8s
0.0s
1×

CSS

@keyframes slide-up {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.animated {
  animation: slide-up 0.8s ease-out 1 both;
}

@media (prefers-reduced-motion: reduce) {
  .animated {
    animation: none;
  }
}

About this tool

Choose from presets like fade in, slide up, zoom, bounce, pulse, spin, shake, wobble, flip and heartbeat, then adjust duration, delay, easing, repeat count, direction and fill mode while the preview replays.

The output includes the @keyframes block, the animation shorthand and a prefers-reduced-motion rule that switches the animation off for people who have asked their system for less motion.

If your own system has reduced motion turned on, the preview pauses — you can still play it on demand.

Frequently asked questions

What does animation-fill-mode do?

It decides which keyframe styles apply before and after the animation runs. “both” keeps the starting state during the delay and the end state after it finishes — usually what you want for entrances.

Why respect prefers-reduced-motion?

Large or repeating motion can cause discomfort for people with vestibular disorders. Disabling non-essential animation when that setting is on is a WCAG recommendation.

CSS animations or JavaScript?

For simple entrances, loops and hovers, CSS animations are lighter and run on the compositor. Use JavaScript when motion depends on user input or needs to be sequenced dynamically.

Related tools