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.
.getTotalLength()
.getPointAtLength()