Difference between revisions of "Template:TecCEM/Menu"

Line 185: Line 185:
  
 
$(window).scroll(function(){
 
$(window).scroll(function(){
  if($(document).scrollTop() > 20){//Here 200 may be not be exactly 200px
+
  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

Untitled Document