Code · Made a little simpler

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.

Free to useNo account neededProcessed on your device
Your workspaceProcessed on your device
Stop 1 · 0%
Stop 2 · 100%

Add this tool to your website

Paste this code into your page to add the tool and a visible ToolMellow credit link.

HTML embed code
Preview embed

CSS Animation Generator: how to use it

  1. Choose an animation preset or start with the default fade. Name the animation and set its timing.
  2. Add intermediate stops and set their position, opacity, rotation, scale and color. Scrub the timeline or play the preview.
  3. 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.

Guides