100-project-100-days-website/100_projects/34-animated-sidebar-menu/app.js
2023-03-27 01:39:13 +03:00
Ask

6 lines
177 B
JavaScript

{4a781a184ba0f470039433bf38b80f2fd163fedd true 177 app.js 0xc002e9bb20}

const toggle = document.getElementById('toggle');
const nav = document.getElementById('nav');
toggle.addEventListener('click', () => {
nav.classList.toggle('active');
});