Created
July 8, 2016 07:38
-
-
Save kirandash/47aa828fa8fbf503900768f589bf7f53 to your computer and use it in GitHub Desktop.
Adding a slide effect to bootstrap dropdown
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
// ADD SLIDEDOWN ANIMATION TO DROPDOWN // | |
$('.dropdown').on('show.bs.dropdown', function(e){ | |
$(this).find('.dropdown-menu').first().stop(true, true).slideDown(); | |
}); | |
// ADD SLIDEUP ANIMATION TO DROPDOWN // | |
$('.dropdown').on('hide.bs.dropdown', function(e){ | |
$(this).find('.dropdown-menu').first().stop(true, true).slideUp(); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment