All examples By author By category About

johan

Point-Along-Path Interpolation

Demonstrates how to use the getTotalLength and getPointAtLength methods on SVG path elements to interpolate a point along an existing path, and how to animate the stroke using the stroke-dasharray style. Built with D3. Forked (and tweaked) from Mike Bostock's original.