HomeGuides

How to animate an SVG icon

An animated icon is one of the cheapest ways to make an interface feel alive: a menu that draws itself, a checkmark that lands, a logo that assembles on a splash screen. This guide takes a plain SVG and turns it into an animation you can hand to a developer, all in a browser tab.

1. Prepare the SVG

Most problems happen before the animation starts. Three things to check in Illustrator, Figma or Inkscape before exporting:

2. Import and split into layers

Drop the file onto the canvas. Each shape becomes a layer with its own row on the timeline. If your file arrived as one compound path, press Split: sub-paths become independent layers, each with its own delay and colour.

Rename layers by double-clicking the name — outer circle, arrow, dot — and give each a label colour. On an icon with twenty shapes this is the difference between working and guessing.

3. Choose how it draws

The Mode menu decides how the stroke appears. The three classics:

And six less obvious ones. From the centre and From both ends suit symmetrical icons, where growing from one end looks lopsided. Comet sends a short arc racing along the path and reads as speed. Typewriter advances in steps instead of gliding, which suits technical or retro work. Segments and Stardust break the line into pieces that swell until they merge — stardust uses enough dots that the shape looks like it condenses out of dust.

4. Time it: duration, stagger, easing

Three controls do most of the work.

Duration is how long one shape takes to draw. For interface icons, 0.4 to 0.8 seconds feels responsive; for a logo reveal, 2 to 3 seconds gives it room to breathe.

Stagger delay offsets each layer from the previous one. Without it every shape starts together and the result is mush. With 80 to 150 ms the icon assembles piece by piece.

The easing curve decides the character. Linear looks mechanical. power2.out starts fast and settles, which reads as confident. back.out overshoots slightly and feels playful. Pick the curve before you fine-tune the timing: it changes the perceived speed more than the duration does.

5. Keyframes, when you need more control

Everything above animates the drawing itself. For movement, scale, rotation, thickness or colour, use keyframes: put the playhead where you want a value, press the ◆ next to the field, move the slider, move the playhead and repeat.

The part people miss: the span between two keyframes has its own curve. Click the segment between two diamonds on the timeline and pick a curve for just that stretch. An object can arrive with a soft ease and leave abruptly — one animation, two different characters.

6. Export

Four formats, one animation:

If you are unsure, there is a guide comparing the four.

Common mistakes

Try it as you read. The tool is free and needs no account: open the editor, drop in an SVG and follow along.