Draw a line icon on screen

Make the lines of an SVG icon or drawing draw themselves in. Set the length, gap and start point, and choose whether it repeats.

Updated 21 Nov 2026

The Stroke effect makes the outline of an SVG draw itself, as if a pen is tracing it. It is good for a line icon, a signature, a logo outline or a squiggle under a heading. It works on the SVG element only, on the SVG itself and not on a box around it. Only shapes that have a stroke (an outline) are drawn. A filled shape with no outline stays as it is.

Where to find it

  1. Click the SVG on the canvas.
  2. In the panel on the right, open the Effects tab, next to Styles.
  3. Click the + at the top of the tab, then Stroke. It is the first choice in the list. A row appears and its settings open in a panel beside the tab.

A new Stroke draws the whole outline once, over two seconds, starting when the page loads. Click the x at the end of the row to remove it. Undo brings it back. The other effects (Appear, Hover, Press, Loop) are still available on the same SVG.

The colour and thickness of the line come from the Styles tab, not from this effect.

The settings

Setting What it does Default
Length How much of the outline is drawn as one piece, from 0 to 100 percent. Type a number or use the - and + buttons (1 at a time, 10 with Shift held). 100%
Gap The space between pieces, from 0 to 100 percent. Type a number or use the - and + buttons. 100%
Offset Where the drawing starts along the outline, from 0 to 100 percent. 0%
Loop No draws once. Yes keeps going and shows Type. No
Type Repeat starts again from the beginning. Mirror draws, then undraws, back and forth. Continuous keeps the line moving in one direction with no jump. Repeat
Transition How long one round takes and how it feels. See Set the speed and feel of an effect. Its delay is the wait before it starts. Ease in out, 2 seconds

Try it on the canvas

Click More at the bottom of the settings, then Play on canvas to watch it in the editor. The SVG goes back to normal when it ends.

On phones

It works the same on a phone.

Visitors who turn motion off

Some people switch off motion on their device. For them nothing moves and the outline is shown fully drawn. You do not need to do anything.

What it adds to your page

Only pages that use a Stroke load the small script it needs. A page with no Stroke loads nothing extra.

More in this topic

Back to Help centre

Still stuck?

Write to us and a person replies.

Email [email protected]