← SVG & icons

Light Trail Logo

Comets of light race round the outlines of a logo, speeding up and slowing down, then fade away as the outline lights up and is left glowing like neon. Any wordmark in the SVG glows in at the end. Best on a dark background.

animacious

How to use it

  1. Paste the snippet just before </head>.
  2. Add data-light-trail-logo to your logo’s inline <svg>, drawn as outlines: shapes with a stroke.
  3. Trails race round every shape. Text in the SVG has no outline to follow, so it glows in at the end instead.

Options

Add any of these attributes to the same element.

data-colorColour of the trails and glow. Default each shape’s own stroke colour.
data-trailsTrails chasing round each shape. Default 2.
data-lapsHow far they go round. Default 1.25 laps.
data-durationTime for the race. Default 2400 ms.
data-loopRace, glow, dim and repeat.
data-holdHow long it glows, when looping. Default 2400 ms.
data-delayWait before it starts.

Shapes with a fill fill in as the outline lights up. It starts when scrolled into view. With reduced motion the logo simply shows, glowing.

1 · Snippet
2 · Your HTML