SVG: Trigger a click event on animateTransform after clicking a button
问题 I would like to have my svg animation run when clicking an html button. I thought I could make that work by setting begin="click in my animateTransform and then trigger a click event on the animateTransform (or the svg element containing the animateTransform , I tried both) using js. Any advice would be a great help. var needle = $('#needle'), tape = $('#tape'), btn = $('#muhBtn'); btn.on('click', function() { needle.click(); tape.click(); }); #tape { fill: #ED1C24; } #needle { fill: #8DC63F;