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
https://d3js.org/d3.v4.min.js