100-project-100-days-website/100_projects/46-dropdown-menu-user-account/js/main.js
2023-04-08 02:53:55 +03:00
Ask

7 lines
195 B
JavaScript

{312659336ddfd5ae4c3ecb53b21e87a9ca618373 true 195 main.js 0xc001fbc7e0}

let menuToggle = document.querySelector(".menuToggle");
let navigation = document.querySelector(".navigation");
menuToggle.onclick = function(){
navigation.classList.toggle('active');
}