on-internet
← Community

How to hide elements when Hamburger menu is clicked

Stack Overflow ·

I'm having problems with my mobile responsive navbar. It works perfectly on desktop but on mobile, it is showing like this So I tried removing the code that play video in the background and it worked! This is my navbar code, var navList = document.getElementById("nav-lists"); var body = body; function Show() { navList.classList.add("_Menus-show"); } function Hide() { navList.classList.remove("_Menus-show"); } <style>*, *::before, *::after { box-sizing: border-box; -webkit-box-sizing: border-box; } .container { height: 60px; background-color: #333333; display: -webkit-box; display: -ms-flexbox;

Comments

Sign in or sign up to comment and upvote.

No comments yet.