CSS Animation Playground

Build CSS animations visually: presets like fade, bounce and shake, duration, easing incl. cubic-bezier, repeat, direction and your own keyframes. Copy the CSS.

Tool

Was this tool useful?

About this tool

About CSS Animation Playground

Make CSS animations without guessing. Pick a preset (fade in, slide, zoom, bounce, pulse, shake, spin, flip, wobble, colour shift) or write your own keyframe steps, then set the duration, delay, easing (including spring and overshoot curves or your own cubic-bezier), repeat count, direction and fill mode. The preview updates instantly, and the generated CSS includes a prefers-reduced-motion rule so people who turn animations off are respected.

How it works

Keyframe percentages are spread evenly over the steps (2 steps = 0% and 100%, 3 steps = 0%, 50%, 100%…). The animation shorthand is: name duration timing-function delay iteration-count direction fill-mode.

Example

The bounce preset at 1 s, ease-in-out, forever gives @keyframes with 0%, 25%, 50%, 75% and 100% steps.

How to use this tool

  1. Choose a preset or write your own keyframe steps.
  2. Adjust timing, easing, repeat and direction.
  3. Replay the preview and copy the CSS.

Frequently asked questions

Will it work in all browsers?

Yes – CSS animations and cubic-bezier easing work in every modern browser without prefixes.

Why the reduced-motion rule?

Some people get dizzy from motion and turn it off in their system settings. The rule switches your animation off for them.

Is my data uploaded?

No. Everything runs in your browser and stays on this device.

Is my design uploaded by the CSS Animation Playground?

No. The CSS Animation Playground works in your browser, so your images and colours stay on your device.