CSS Animation Generator
Choose a ready-made animation, tune its timing and copy the @keyframes CSS.
How to use the CSS Animation Generator
- Choose an animationPick an effect such as bounce, fade in, slide up or spin.
- Set the timingAdjust duration, delay, repeats, easing, direction and fill mode, and click Replay to watch it.
- Copy the CSSCopy the @keyframes and the class, then add that class to any element.
Example
Bounce, 1 second, forever gives animation: bounce 1s ease infinite both; plus the @keyframes bounce rules.
For an entrance effect, use Slide up, 0.6 s, repeat 1 and fill both, so the element stays visible at the end.
Frequently asked questions
How do I use the generated CSS?
Paste it into your stylesheet, then add the class to an element, for example <div class="animate">. The animation runs when the element appears.
What does fill mode do?
“forwards” keeps the last frame after the animation ends, “backwards” applies the first frame during the delay, and “both” does both. It stops elements from jumping before or after the animation.
Should I respect reduced motion?
Yes. Wrap the rule in @media (prefers-reduced-motion: no-preference) { … } so people who turn off animations in their system settings are not affected.