Created
June 2, 2014 17:13
-
-
Save verticalgrain/30ba1f1cab733c8f9415 to your computer and use it in GitHub Desktop.
Animated hamburger navigation icon
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
$(document).ready(function() { | |
$('button.lines-button').click(function() { | |
$(this).toggleClass('closeit'); | |
$('#nav-panel').slideToggle('slow','swing',function() { | |
console.log('animation complete'); | |
}); | |
}) | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment