Advertisement
arnabkumar

dropdown menu over effect with jquery

Jul 14th, 2014
180
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $(document).ready(function(){
  2. //dropdown menu over effect
  3.  
  4. $("ul#mainmenu li ul.dropdown").css('opacity', 0.0); //hide dropdown normal
  5. $("ul#mainmenu li").hover(function(){
  6.  
  7. $(this).find("ul.dropdown").stop().animate({opacity: 1}); //show dropdown when hover mouse on li
  8.  
  9. },
  10. function(){
  11. $(this).find("ul.dropdown").stop().animate({opacity: 0.0});//hide dropdown when leave  mouse from li
  12.  
  13. }
  14.  
  15. );
  16.  
  17. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement