+ 1
How to start svg animations with a click on that object
I made a simple animation and want to start with onClick function but how exactly??
2 Respostas
+ 3
var el=document.querySelector('#id')
el.addEventListener("click", function(){
// Your code
})
+ 9
Udit there are a number of ways in which you can do this. Perhaps this example will give you what you are looking for. See https://code.sololearn.com/WKyQoPr3J0Q2/?ref=app.