pathLength stroke stroke-dasharray SVG Scroll Drawing We’ve taken an in-depth look at how SVG line drawing works before. It’s a clever trick where you use dashed lines for the stroke, but the gap in the dash is so long it covers the entire path. Then you … Chris Coyier on Aug 10, 2015 (Updated on Jan 27, 2020)