javascript - Adding a slide effect to bootstrap dropdown -


i'm using bootstrap, , i'd add animation dropdown.

i want add animation it, slide down , when leaving it.

how this?

things tried:

changing js drop down file this:

how can make bootstrap's navigation dropdown slide smoothly , down?

any good! thank you!.

if update bootstrap 3 (bs3), they've exposed lot of javascript events nice tie desired functionality into. in bs3, code give of dropdown menus animation effect looking for:

  // add slidedown animation bootstrap dropdown when expanding.   $('.dropdown').on('show.bs.dropdown', function() {     $(this).find('.dropdown-menu').first().stop(true, true).slidedown();   });    // add slideup animation bootstrap dropdown when collapsing.   $('.dropdown').on('hide.bs.dropdown', function() {     $(this).find('.dropdown-menu').first().stop(true, true).slideup();   }); 

you can read bs3 events here , dropdown events here.


Comments

Popular posts from this blog

java - Spring Data JPA: Why findOne(id) executing delete query internally? -

python - Mongodb How to add addtional information when aggregating? -

java - Incorrect order of records in M-M relationship in hibernate -