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";
}
 
Joined
Mar 11, 2022
Messages
227
Reaction score
32
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

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top