element.style.cssText = "background-color:red;width:100px;height:100px";
element.style.cssText =
"
background-color:red;
width:100px;
height:100px
"
null
, а не просто написать let timer;
?let top = Math.max(document.body.scrollTop, document.documentElement.scrollTop);
return false;