CSS Animation Playground
Preview and customise CSS keyframe animations live, then copy the ready-to-use CSS code.
About this tool
The CSS Animation Playground lets you experiment with CSS keyframe animations in real time without writing a single line of code. Choose from eight pre-built animation presets — bounce, fade, slide, rotate, shake, pulse, flip, and swing — and watch a preview box animate instantly. Fine-tune every parameter: duration (0.1 s to 10 s), delay, timing function (ease, linear, ease-in, ease-out, ease-in-out, cubic-bezier), iteration count (1 to infinite), and fill mode (none, forwards, backwards, both). The CSS code panel updates live, showing the exact @keyframes block and animation shorthand property you need. Copy the code with one click and paste it straight into your stylesheet. Great for learning CSS animations, prototyping UI micro-interactions, or quickly generating animation code for a project.
How to use
- 1 Select an animation preset from the grid (bounce, fade, slide, etc.).
- 2 Adjust duration, delay, timing function, iteration count, and fill mode.
- 3 Watch the preview box animate live as you change settings.
- 4 Click the preview box to replay the animation at any time.
- 5 Copy the CSS code from the output panel and paste it into your project.