Advertisement
Guest User

Untitled

a guest
Jun 20th, 2019
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. .dropdown-toggle[aria-expanded="true"]:after {
  2. transform: rotate(-180deg);
  3. }
  4.  
  5.  
  6. .dropdown-toggle:after {
  7. transition: 0.2s;
  8. }
  9.  
  10. $('.dropdown-menu a.dropdown-toggle').on('click', function(e) {
  11. if (!$(this).next().hasClass('show')) {
  12. $(this).parents('.dropdown-menu').first().find('.show').removeClass("show");
  13. }
  14. var $subMenu = $(this).next(".dropdown-menu");
  15. $subMenu.toggleClass('show');
  16.  
  17.  
  18. $(this).parents('li.nav-item.dropdown.show').on('hidden.bs.dropdown', function(e) {
  19. $('.dropdown-submenu .show').removeClass("show");
  20. });
  21.  
  22.  
  23. return false;
  24. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement