Portfolio/scripts/homepage.js

9 lines
229 B
JavaScript
Raw Normal View History

2024-05-23 03:02:22 +00:00
const navbtn = document.getElementById('nav-btn');
2024-05-23 03:02:22 +00:00
navbtn.addEventListener('click', () => {
const navbar = document.getElementById('navbar');
navbar.classList.toggle('expanded');
navbtn.classList.toggle('expanded');
});