Last active
February 13, 2024 07:54
-
-
Save taniarascia/d6304fa60ff5e5088ce7 to your computer and use it in GitHub Desktop.
Toggle navigation with jQuery
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function toggleNav() { | |
if ($('#wrapper').hasClass('show-nav')) { | |
// Do things on Nav Close | |
$('#wrapper').removeClass('show-nav'); | |
} else { | |
// Do things on Nav Open | |
$('#wrapper').addClass('show-nav'); | |
} | |
//$('#wrapper').toggleClass('show-nav'); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment