JS setInterval() only runs once when animating opacity
问题 I've searched and seen that most people with this problem are passing a function call rather than function name ie: setInterval(myFunc(),100) instead of setInterval(myFunc,100) But I'm not, and it still won't work... I also saw a lot of people saying you need to parseFloat on the opacity to get it to work, I've tried that and it still yields the same result... The function runSubMenu1() appears to run just one time regardless of whether i include the if(i.style.opacity==1) clause or not Not