Toolstia / CSS animation generator
CSS animation generator
Pick a ready-made effect such as fade, bounce, shake or spin, adjust the duration, easing and repeat count, and copy the finished @keyframes rule and animation property. A live preview shows exactly how it will move.
Add the class to any element to play the animation. Animate transform and opacity where you can, because browsers handle those smoothly. Consider turning animation off for people who prefer reduced motion with the prefers-reduced-motion media query.
How it works
- Choose a preset animation.
- Set the duration, delay, timing function, repeats, direction and fill mode.
- Watch the preview, then copy the CSS.
What you get
A complete @keyframes block plus the animation shorthand and a rule for the selector you name, ready to paste into a stylesheet.
Timing functions
Ease, linear, ease-in, ease-out and ease-in-out change how speed varies. A stepped option gives a jerky, frame-by-frame look.
Direction and fill mode
Alternate plays forward then backward. Fill mode forwards keeps the final frame on screen after the animation ends.
Accessibility
Some visitors ask their device to reduce motion. Wrap decorative animation in a prefers-reduced-motion media query so it can be switched off for them.
Questions
Do I need a library?
No. These are plain CSS animations that work in every modern browser. Everything happens in your browser, and nothing you enter is sent anywhere.
Can I rename the animation?
Yes. Change the name field and the keyframes and the property update together.
Why does my animation only run once?
The iteration count is set to 1 by default. Choose a higher number or infinite.