Line 185: | Line 185: | ||
$(window).scroll(function(){ | $(window).scroll(function(){ | ||
− | if($(document).scrollTop() > | + | if($(document).scrollTop() > 80){//Here 200 may be not be exactly 200px |
document.querySelector(".menu").classList.add("menu_hidden"); | document.querySelector(".menu").classList.add("menu_hidden"); | ||
document.querySelector('.menu-close').classList.remove('open'); | document.querySelector('.menu-close').classList.remove('open'); |
Revision as of 16:20, 29 August 2021