Portfolio-maybe/script.js

7 lines
204 B
JavaScript
Raw Normal View History

2023-09-06 09:09:13 +00:00
function toggleMenu() {
const menu = document.querySelector(".menu-links");
const icon = document.querySelector(".hamburger-icon");
menu.classList.toggle("open");
icon.classList.toggle("open");
}