The button's opacity used to change gradually in increments of 0.1 every 500 milliseconds, but now it instantly changes to 0.9 without the delay.
Issue: Despite being placed within a window load handler and all elements loading properly, the loop is not providing the expected 500 milliseconds break. Instead, the button's opacity jumps straight to 0.9.
var interval = window.setInterval(login(),500);
var button=document.getElementById("login_btn");
var opacity = 0.1;
function login(){
if(opacity >= 0.9){
window.clearInterval(interval);
}else{
button.style.opacity=opacity;
opacity+=0.1;
}
}