const toggleButton = document.getElementsByClassName('toggle-button')[0]
const links = document.getElementsByClassName('links')[0]
toggleButton.addEventListener('click', () => {
links.classList.toggle('active')
})
Using Javascript , When i press by hamburger after the media query kicks in, it all works using this code , but how do i press the hamburger again to then rehide the links?
Aucun commentaire:
Enregistrer un commentaire