Finish mobile nav styling and behaviour
parent
7fcfbb76b0
commit
e757ee6bca
@ -1,4 +1,5 @@
|
|||||||
document.getElementById("menu-button").addEventListener("click", function(){
|
document.getElementById("menu-button").addEventListener("click", function(){
|
||||||
|
document.body.classList.toggle("noscroll");
|
||||||
this.getElementsByClassName("image")[0].classList.toggle("open");
|
this.getElementsByClassName("image")[0].classList.toggle("open");
|
||||||
document.getElementById("nav").classList.toggle("visible");
|
document.getElementById("nav").classList.toggle("visible");
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue