UTILS.
Private by default
⤿

CSS Animation Generator

Build a keyframe animation, preview it live and copy the CSS.

Your files stay on this device

Files are processed in your browser, never uploaded. The site downloads code and assets to run the tools. No accounts or trackers.

Use Download to save this tool as one HTML file for offline use.

Privacy →

About this tool

CSS Animation Generator builds a ready-to-paste @keyframes block together with the animation declaration that uses it. Pick one of five presets: fade in, slide in, bounce, spin or pulse. Then choose a timing function (ease, linear, ease-in, ease-out or ease-in-out), a duration from 0.2 to 5 seconds and an iteration count of 1, 2, 3 or infinite. A small gradient square plays the animation live, and Replay restarts it from the first frame.

The copied CSS contains the keyframes, named uw-fade, uw-slide, uw-bounce, uw-spin or uw-pulse, followed by a .element rule such as animation: uw-bounce 1.5s ease infinite; rename .element to your own selector. Fade goes from opacity 0 to 1, slide moves in from 100px to the left, bounce rises 40px at the midpoint and returns, spin turns a full 360 degrees and pulse scales up to 1.4 and back. All of them use opacity or transform, which browsers can animate smoothly.

The shorthand sets only the name, duration, timing function and iteration count. It adds no delay, direction or fill-mode, so edit it if you need those. Custom curves such as cubic-bezier() are not offered either. If you animate things that move a lot, consider wrapping the rule in a prefers-reduced-motion check so people who have turned off motion are not forced to see it.

Frequently asked questions

What does the iteration count control?
It sets how many times the animation plays; choose infinite to loop forever or a number to run it that many times.
How do I restart the animation?
Press Replay — it briefly removes and reapplies the animation so the preview plays again from the first keyframe.
Can I add a delay or keep the final state?
The generated shorthand does not include them. Add animation-delay or animation-fill-mode: forwards to your own rule after pasting.
Can I change the distance or the colours?
Not in this tool. The presets use fixed values, such as a 100px slide or a 1.4 scale, but the copied keyframes are plain CSS you can edit.

More tools