• Hi, I’m searching for solution to collapse menu on mobile. I need to scroll to anchor section and collapse menu after clicking on the menu item. The height of .aux-toggle-menu-bar is calculated dynamically and I can’t find where it is stored. I’ve recorded video that shows the problem:
    https://www.loom.com/share/706a4fa94da34711ae3f9a7db01a8777

    And this is the code I’m working with:

    
    	$('.btn_menu a').on('click', function (){
    		$('.aux-burger').toggleClass('aux-close');
    		$('.aux-toggle-menu-bar').css('height', '0px');
    	});
    

    Please help 🙂

    • This topic was modified 2 years, 9 months ago by jwywiol.
  • The topic ‘Hide mobile menu on click’ is closed to new replies.