Hello
This did not work for me. I was using the exact code you wrote, or am I mistaken?
I used
var elem=document.getElementById("theMask");
var paths = elem.getElementsByTagName("path");
And then:
for (let i = 1; i < paths.length; i++) {
tl.add("path"+i);
tl.to(paths[i], {duration: 0.75, drawSVG:true}, "path"+i);
tl.to("#hand", {duration: 0.75, motionPath:{path:paths[i], align:paths[i]} }, "path"+i);
}
And it does not work. I tried adding the pen <g> at the end, made no difference.