Pleeease help?


Joined
Jul 15, 2022
Messages
2
Reaction score
0
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";
}
 
Ad

Advertisements

Joined
Mar 11, 2022
Messages
96
Reaction score
8
Should be pushed to off topic. That's not a JS question. Sorry, don't know. I don't use VS.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top