loading code fetching the highlighted snippet
Animate CSS variables directly on SVG paths. Scrub the visible segment or replay a draw-and-erase sequence.
animate() writes custom properties directly onto the SVG paths.pathLength="1" normalizes the stroke so trim values run from zero to one.animate(sequence) draws, erases, and restores the path with upstream sequencing.Scrub either end, or replay the complete draw-and-erase sequence.