Portfolio-maybe/script.js
2023-09-06 11:09:13 +02:00

6 lines
204 B
JavaScript

function toggleMenu() {
const menu = document.querySelector(".menu-links");
const icon = document.querySelector(".hamburger-icon");
menu.classList.toggle("open");
icon.classList.toggle("open");
}