Animated Icons
55 line icons that draw themselves in when they scroll into view, then play a small gesture of their own on hover. Plain SVG and one CSS file. Free, MIT.
No icon matches that. Try a broader word.
How to use
- Add the stylesheet and the script to the page's
<head>. Keep the script withoutdefer, so icons start hidden instead of flashing before they draw.<link rel="stylesheet" href="https://icons.uxjovan.com/v1/animated-icons.css"> <script src="https://icons.uxjovan.com/v1/animated-icons.js"></script> - Paste an icon's SVG where you want it. Size it with
width/heightor CSS, colour followscurrentColor, stroke follows--ic-stroke. - That's it. Icons draw in each time they scroll into view. Hovering or focusing the link, button or label around an icon plays its gesture; put
data-ic-hoveron any other element to make it a trigger.
Respectful by default. With reduced motion, or without the script, every icon simply shows its finished drawing. Gestures play once per hover and never loop.
Options. data-ic-once plays the entrance only the first time. data-ic-static skips it. AnimatedIcons.play(svg) replays one from code.
Everything as data. icons.json has every icon with its SVG, tags and motion notes.