CSS Animation Generator
Pick an effect, tune its timing and behaviour, and watch it play. The preview runs the same @keyframes and animation CSS you copy, and every value is checked before it is used.
1. Effect & timing
Strictly validated values2. Live preview
Uses the generated CSSGenerated code
@keyframes + animationThe box colour and size in the preview are demo styling — Download HTML includes them in a separate block, but they are not part of the CSS above.
About CSS Animation Generator
CSS Animation Generator creates @keyframes animations with a live preview. Choose fade, slide, scale, rotate, bounce, pulse, shake or a custom transform, then set the animation name, duration, delay, timing function (including cubic-bezier and steps), iteration count, direction, fill mode, play state and transform origin. Every value is checked against strict patterns, and the preview runs the same CSS you copy.
Small animations make interfaces feel responsive and guide attention, but keyframes and timing functions are fiddly to write and tune by hand. Experimenting visually and copying finished CSS saves time, and the optional reduced-motion rule helps keep animations accessible.
Step by step
- Choose an effect and, where offered, its variant and amount.
- Set the animation name, duration, delay and timing function.
- Choose iterations, direction, fill mode and transform origin.
- Type the text for the preview element and use Play, Pause and Replay to check the motion.
- Keep the reduced-motion option on unless you have a reason not to.
- Copy or download the CSS and HTML.
What it offers
- Fade, slide, scale, rotate, bounce, pulse and shake presets
- Custom transform with strictly validated functions
- Duration, delay, timing function, cubic-bezier and steps
- Iteration count or infinite, direction, fill mode and play state
- Transform origin keywords or custom values
- Play, Pause and Replay controls
- Optional prefers-reduced-motion rule
- Copy and download CSS, HTML and a standalone demo page
Tips for best results
- Keep interface animations short — around 150–400 ms for most transitions.
- Animate transform and opacity for the smoothest performance.
- Avoid infinite animations on content people need to read.
- Respect reduced-motion preferences, especially for large or bouncing movement.
- Give each animation a descriptive name that won’t clash with other styles.
Why people use it
See it move
A live preview of the exact CSS.
Safe values
Every input is validated before use.
Accessible
Reduced-motion support in one click.
Ready to paste
Clean @keyframes and animation properties.
Common questions
This runs entirely in your browser
No file or text you enter here is uploaded. Encoding and decoding happen on your device using native browser APIs — close the tab and nothing remains on a server.