Hi All, I am beginner when it comes to coding. Please can you help me with my problem below?
addEventListener("animationiteration"RanHole) How do I add the extension animationiteration in Visual Studio? When I type in addEventListern animationiteration doesn't come up on the list that opens?
var hole = document.getElementById("hole");
var game = document.getElementById("game");
hole.addEventListener("animationiteration", RanHole)
function RanHole(){
var random =-((Math.random()*350)+150)
hole.style.top = random+"px";
}
addEventListener("animationiteration"RanHole) How do I add the extension animationiteration in Visual Studio? When I type in addEventListern animationiteration doesn't come up on the list that opens?
var hole = document.getElementById("hole");
var game = document.getElementById("game");
hole.addEventListener("animationiteration", RanHole)
function RanHole(){
var random =-((Math.random()*350)+150)
hole.style.top = random+"px";
}