CSS Animation Generator
Build CSS @keyframes with opacity, position, rotation, scale and color. Edit timing, scrub or play the preview, and copy or download a CSS stylesheet.
Check a CSS Animation at One Keyframe
CSS Animation Generator: how to use it
- Choose an animation preset or start with the default fade. Name the animation and set its timing.
- Add intermediate stops and set their position, opacity, rotation, scale and color. Scrub the timeline or play the preview.
- Copy the CSS or download a stylesheet. Add the generated class to an element on your page.
Limits and notes
Up to 12 typed keyframe stops, including 0% and 100%. Use distinct offsets, 0.05–60 seconds per play and numeric iterations or infinite. Preview respects the browser’s reduced-motion preference.
How your privacy works →CSS Animation Generator: common questions
How do I add a keyframe?
Select Add stop, enter a distinct offset between 0% and 100%, and set its properties. The exported keyframes are ordered by offset.
How do I preview a single point?
Move Scrub keyframes to that percentage. This shows one forward keyframe timeline without waiting through a delay or repeats.
How do I use the generated stylesheet?
Place the rules in your stylesheet and add the generated class to the element. Keep the reduced-motion rule if the animation should be disabled for visitors who request it.