Animated icons
Animated SVG icons that mean something
A bell that rings, a download arrow that drops, a heart that beats once. Inkicon adds motion to your own set, one gesture per icon, chosen for what the icon means.
What's in the animated pack
motion/icons.js: a dependency-free module.createIcon(name, {size, color, triggerElement})returns an element withtrigger(),setActive(),setLoading()anddestroy().motion/icons.cssand a working example page.- Every icon still as a static SVG, used as the fallback.
Built to behave
- Gestures finish within 280 ms after the pointer leaves, and repeated triggers don't restart them.
- People who ask their system for reduced motion get still icons, including for loading states.
- Icons with no fitting gesture stay still rather than wiggling for the sake of it.
- No network access or animation library is needed.
You preview each icon's gesture before exporting and can change or remove it.