An example of using built-in svg path properties (.getTotalLength()
and .getPointAtLength()
) to iterate through svg paths. Uses precomputed TopoJSON from Census Bureau data. breathe.js provides animation.
https://d3js.org/d3.v4.min.js
https://d3js.org/topojson.v2.min.js
https://unpkg.com/breathejs@0.2.0/breathe.js