Hey @OSUblake thanks for the welcome! Here's a CodePen demo with just a single track & dot (and much much less SVG/JS ?).
https://codepen.io/llexan/pen/LYOaGEY?editors=0010
Oh this is awesome, thank you @mikel! ?
If I'm understanding correctly I could create a separate, identical path for the tail instead of just animating the track stroke?
Right now I have 8 different paths/tracks and am fading between them to give the illusion of one. But this looks like it'd be much cleaner (and probably more performant) to have just one track and use this technique in your example to go "under" the bridge when needed.
And if I can make it one track instead of split into four that would solve the reversing problem ? I'll refactor and give that a shot!
Thank you all again so much!
EDIT: Still working on rewriting everything but your example @mikel solves my issues! ?