100-project-100-days-website/100_projects/60-eid-al-fitr-2023/script.js
2023-04-22 03:59:33 +03:00
Ask

7 lines
241 B
JavaScript

{bc5942334c3300c52c3e7710a98fcd1acd1a4506 true 241 script.js 0xc002c14af0}

const toggleMenu = document.querySelector('.toggle');
const navigation = document.querySelector('.navigation');
toggleMenu.onclick = function () {
toggleMenu.classList.toggle('active');
navigation.classList.toggle('active');
}