SVG Animate Path
SVG Animate Path
Miller Hintz
Use Javascript to calculate the length of an SVG Path
6 minutes Posted Aug 10, 2020 at 1:57 pm.
0:00
6:57
Download MP3
Show notes

svg is a pretty great alternative. All the techniques and basic theory here hold true; you create a path with a given length, and then set strokeDasharray and strokeDashoffset to the same length. Then you can just do path. animate({strokeDashoffset: 0}, 1000); for the same effect (1000 is time in ms).