Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created December 26, 2020 18:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save parzibyte/d6b3c0ff6938d9f231dbfc9d0b6ff4e0 to your computer and use it in GitHub Desktop.
Save parzibyte/d6b3c0ff6938d9f231dbfc9d0b6ff4e0 to your computer and use it in GitHub Desktop.
<script type="text/javascript">
document.addEventListener("DOMContentLoaded", () => {
const boton = document.querySelector(".navbar-burger");
const menu = document.querySelector(".navbar-menu");
boton.onclick = () => {
menu.classList.toggle("is-active");
boton.classList.toggle("is-active");
};
});
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment