Skip to content

Instantly share code, notes, and snippets.

@girvan
Last active October 24, 2019 02:35
Show Gist options
  • Save girvan/04e993d4572c3a7c9c8df40ad07a729c to your computer and use it in GitHub Desktop.
Save girvan/04e993d4572c3a7c9c8df40ad07a729c to your computer and use it in GitHub Desktop.
[bootstrap-4] pure js for burger icon of navbar toggler
document.querySelector('.navbar-toggler').addEventListener('click', function(){
document.querySelector('.navbar-collapse').classList.toggle('show');
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment