RsD0p9BK
10/22/2015 - 6:54 PM

bs__dropdown_animation.js

// Adding a slide effect to bootstrap dropdown
// http://stackoverflow.com/questions/12115833/adding-a-slide-effect-to-bootstrap-dropdown

// 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();
});