Jovan Savic How to use

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.

How to use

  1. Add the stylesheet and the script to the page's <head>. Keep the script without defer, 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>
  2. Paste an icon's SVG where you want it. Size it with width/height or CSS, colour follows currentColor, stroke follows --ic-stroke.
  3. 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-hover on 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.

Entrance
Hover
Download