CSS Animation Generator
Create a keyframe animation and copy both the keyframes and the animation rule.
Build a keyframe animation
Shorthand: —
How to use the CSS Animation Generator
- Select one of the six keyframe presets from the list.
- Tune the duration, timing function, delay, iteration count and direction.
- Press Replay to watch it again, then copy the keyframes and rule.
Features
- Six presets: fade, slide, pulse, spin, bounce and shake
- Duration, timing, delay, iteration and direction controls
- Replay button that restarts the preview animation
- Keyframes block included with the animation rule
Advertisement
Frequently Asked Questions
Common questions about the free online css animation generator.
Choose a keyframe preset, set the duration, timing and delay, then copy the animation rule
together with its keyframes block.
Yes. An animation rule only references a name, so you must also paste the matching keyframes
block into your stylesheet.
It lists the keyframe name, duration, timing function, delay, iteration count, direction and
fill mode in one declaration.
The default iteration count is one. Set the iteration control to infinite if you want the
animation to loop forever.
Linear keeps a constant speed, while ease starts slowly, speeds up and then slows down again
for a more natural feel.
Yes. Add extra declarations inside the same keyframe blocks, such as opacity together with
transform, and they animate together.
No. It only restarts the preview so you can watch the animation again with exactly the same
settings.
They use transform and opacity where possible, which the browser can animate on the graphics
card without redrawing the page.
Yes. It is completely free, needs no account and runs entirely in your browser without any
network requests.
Last updated: October 10, 2026