After incorporating the code from this post on Stack Overflow about animating diagonal lines, I was pleasantly surprised with how well it worked.
However, my next goal is to style the line in such a way that it appears dotted or dashed, as opposed to one solid line. I've attempted using the dotted and dashed border attributes, but unfortunately, they only seem to alter the outer border rather than the line itself.
If anyone has any suggestions or tips on how I can achieve this desired effect, your insight would be greatly appreciated.