100-project-100-days-website/100_projects/25-dropdown-menu/js/main.js
2023-03-18 17:14:09 +03:00
Ask

7 lines
173 B
JavaScript

{9afe268ebc326c4e974b405f092129dea542d680 true 173 main.js 0xc0030c9260}

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