block by mbostock 1705868

Point-Along-Path Interpolation

Full Screen

This example demonstrates how to use the getTotalLength and getPointAtLength methods on SVG path elements to interpolate a point along a Catmull–Rom spline.

A related technique is stroke dash interpolation.

index.html