block by joyrexus 6942812

Move bug along path

Full Screen

Animate the movement of a bug along a path.

Demonstrates how to use the getTotalLength and getPointAtLength methods on SVG path elements to interpolate a point along an existing path.

Built with svg.js and inspired by @mbostock‘s much slicker D3-variants, here and here

index.html