Hi, I'm not sure what you want to achieve.
See link for sample code.
https://codepen.io/deibu21/pen/jYQLEO
What I did was that I created the class in the animate tag. then use attr () jquery to set the start attribute. See the code below.
$('button').click(function() { $('svg animate.anim1').attr("begin", 2); $('svg animate.anim2').attr("begin", 3); })
Hope this helps.
source share