note: The stroke dasharray reveals more of the path with each tick giving the illusion of movement https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/stroke-dasharray
Animating a path with an arrowhead using stroke-dasharray
and interpolation along the path for the arrow positioning. The translate is determined by a point along the length of the path and the rotation is determined by calculating the approximate tangent of the path using two nearby points.
See also: Animating along a path
forked from veltman's block: Self-drawing arrow
https://d3js.org/d3.v4.min.js