About CSS keyframe animations
The CSS Animation Generator creates keyframe animations you can drop straight into your site. Choose an effect — fade, slide, bounce, spin, pulse, shake or flip — set the duration, timing function and repeat count, preview it live, and copy both the @keyframes rule and the animation shorthand. It runs entirely in your browser.
How CSS Animation works
How to generate an animation
- Pick an effect and watch it play in the preview.
- Set the duration, easing (timing function) and how many times it repeats.
- Copy the
animationshorthand and the matching@keyframesinto your CSS.
Animation vs transition
A CSS animation uses @keyframes to define stages and can loop on its own; a transition animates a single change between two states (often on hover). This tool produces keyframe animations for richer, repeatable motion.
Performance tip
Animating transform and opacity (as these effects do) is GPU-accelerated and smooth. Avoid animating layout properties like width or top for the best performance.
Common uses
- Add entrance animations (fade, slide)
- Create attention effects (pulse, shake)
- Build a spinning or flipping element
- Animate icons and badges
- Prototype motion quickly
- Learn @keyframes syntax
- Loop a subtle background animation
- Copy ready-made animation CSS