my code is as follows:
var downH = document.querySelector(".down");
var anmin = 0;
function anminDown() {
if (anmin < downH.offsetHeight) {
anminPP;
downH.setAttribute("style", "bottom:" + -anmin + "px");
} else {
clearInterval(timer);
}
};
var timer = setInterval(anminDown, 50);
// document.querySelector(".meun").addEventListener("onmouseenter", function () {
// anminDown;
// });
Why does the timer run automatically? There is no place in the code to call it