diff --git a/index.html b/index.html index 71a1524..1c4dfbd 100644 --- a/index.html +++ b/index.html @@ -72,11 +72,11 @@ - Game Controllers - VR Accessories - Gaming Keyboard - Others - Login + Game Controllers + VR Accessories + Gaming Keyboard + Others + Login diff --git a/script.js b/script.js index 1875905..5585bce 100644 --- a/script.js +++ b/script.js @@ -15,6 +15,11 @@ function toggleMenu() { } } +function closeNav(){ + menuList.style.height = "0px"; + menuList.style.paddingTop = "0px"; +} + window.onscroll = function() { updateProgressBar(); }; diff --git a/style.css b/style.css index e7a1df4..44a202f 100644 --- a/style.css +++ b/style.css @@ -1284,6 +1284,7 @@ button { #menuList { overflow: hidden; transition: 0.5s; + z-index: 99; } .row {