CSS Animation Generator

Make CSS animations: fades, slides, bounce, pulse, shake, spin and more, with timing, delay and repeat. Copy @keyframes and CSS.

Runs in your browserNo sign-upWorks offline
#38E1CF → #5B8CFF
#F472B6 → #FBBF24
#22C55E → #0EA5E9
background: linear-gradient(135deg, #38E1CF, #5B8CFF);

What the CSS Animation Generator does

The CSS Animation Generator writes ready-to-use CSS animations. Choose one of 16 animations, such as fade in, slide in, zoom, bounce, pulse, heartbeat, shake, wobble, spin, flip or swing, then set the duration, delay, timing curve, number of repeats, direction and fill mode. The preview plays the animation, and the CSS includes the @keyframes, a class to apply it and, if you like, a rule that turns it off for people who prefer reduced motion.

How to use it

  1. Choose an animation from the list.
  2. Set the duration, delay, timing, repeats, direction and fill mode.
  3. Press Play again to watch it.
  4. Copy the CSS and add the class to your element.

Example

Slide in up with 0.6 seconds and cubic-bezier(0.22, 1, 0.36, 1) writes animation: slide-in-up 0.6s cubic-bezier(0.22, 1, 0.36, 1) 1 normal both; with keyframes that move the element up 40 px while fading it in. The element arrives quickly and settles gently, which feels smoother than a linear move.

Smooth and considerate animation

Animations that change only transform and opacity run smoothly, even on older phones, because the browser does not need to lay the page out again. Keep interface animations short, around 150 to 400 ms, and save longer ones for attention-grabbing moments.

Some people feel unwell with movement on screen and ask their device to reduce motion. Keep the reduced-motion rule ticked so your animation switches off for them; the content still appears.

Questions people ask

Is anything uploaded?

No. Everything is worked out in your browser, so your colours, designs and images stay on your device.

What does fill mode both do?

The element takes the first frame during the delay and keeps the last frame after the animation ends.

How do I run it on scroll?

Add the class with JavaScript when the element comes into view, for example with IntersectionObserver.

Can I rename the animation?

Yes. The name is used for both the @keyframes and the class.

Related tools