CSS Animation Generator
Builds CSS animations: presets, a keyframe and easing editor, a preview you can scrub through, and ready-to-use code.
Your system has reduced motion turned on: on a site this animation would run instantly, and here it is shown in full.
Drag the handles with your mouse or type the numbers.
Click an empty spot on the timeline to add a frame; you can drag the handles.
What to check
CSS
@keyframes and animation separately Collapse
@keyframes
animation
Keyframes and smoothness
An animation is built from keyframes on a scale from 0 to 100%: each keyframe sets a shift, rotation, scale, opacity and, if you want, a background color. The browser handles shifts, rotation, scale and opacity without repainting the page, so this kind of animation runs smoothly even on slow phones.
You can drag the cubic-bezier curve with the mouse, and the balls next to it show how it differs from ease and linear. Spring and bounce are written with linear(): a cubic-bezier curve cannot describe oscillation. For browsers without linear() support, a fallback curve goes into the code.
What the generated code already includes
The code comes with a prefers-reduced-motion block. For users who asked the system to reduce motion, the animation will finish in a millisecond and the element will land in its final state right away. That makes life easier for people with motion sickness and vestibular disorders.
The animation name is checked against CSS rules: a name starting with a digit, containing a space or a word like ease would break the code. The generator will also warn you about a delay without a first keyframe, a jump at the end, and motion that runs longer than five seconds.
Rate this tool
Help us get better
Tell us what was missing.
Other tools
HTML Special Characters
487 characters in twelve sections, with click-to-copy.
Visual HTML Editor
Type as in a text editor and get ready-made HTML.
HTML Color Codes
Color codes in HEX, RGB, HSL and HSB, with a contrast check
Glassmorphism CSS Generator
Frosted glass with a text readability check and a fallback
CSS to SCSS
Flat CSS becomes SCSS with nesting, and back, verified against your source.
CSS Grid Generator
A grid for three screens, with ready HTML and a block-order check
CSS Gradient Generator
Gradients without a gray middle, with a text readability check
Box Shadow Generator
Layered shadows, previewed on two backgrounds with a visibility check