CSS animated icons
Export an icon as HTML plus keyframes. It runs on hover with no JavaScript at all and switches itself off for visitors who prefer less motion.
- Pure CSS keyframes
- Prefers-reduced-motion query included
- Works with any framework or none
- Copy-paste, no build step
How it works
Everything below is generated from one set of motion data, so every format moves the same.
No runtime to ship
The CSS export is self-contained: markup and a small stylesheet. That makes it a fit for static sites, CMS templates and anywhere a script is not welcome.
Reduced motion handled
Every stylesheet ends with a prefers-reduced-motion block that removes the animation, so you never have to remember it.
Easy to retune
Durations and easings are plain values in the rule. Change one number and the whole icon speeds up or calms down.
Read the CSS and HTML for the full steps.
bell.css
/* Zero runtime: keyframes plus a reduced-motion query. */
.pc-bell:hover .pc-part { animation: pc-bell 600ms ease-out; }
@media (prefers-reduced-motion: reduce) { .pc-part { animation: none; } }
/* keyframes and markup are in your licensed export */