✳ Web Tattva Labs← Back to Labs

SVG Stroke Reveal.

Draw an SVG path by animating its stroke dash offset with CSS.

View code
<svg class="route" viewBox="0 0 280 150" aria-label="Animated path" role="img"><path class="draw" d="M20 102 C60 9 99 11 133 69 S215 140 260 50" pathLength="1" fill="none" stroke="currentColor" stroke-width="4" stroke-linecap="round"/></svg>

Technique reference ↗