Last active
August 29, 2015 14:17
-
-
Save samuraijane/52c11983fec1479c8671 to your computer and use it in GitHub Desktop.
Since CSS cannot animate a <div> with display: none to another <div> with display: block, you need to use jquery.
This file contains hidden or 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
// remap jQuery to $ | |
(function($){ | |
// Can also be used with $(document).ready() | |
$(window).load(function() { | |
$('#navs-menu').click(function () { | |
$('.nav-menu').slideToggle(300); | |
}); | |
}); | |
})(window.jQuery); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment