Advertisement
Guest User

Modified JS for Mantra Theme

a guest
Jun 7th, 2012
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. jQuery(document).ready(function() {
  2.  
  3. jQuery('#menu-primary ul.sub-menu').css( 'width', jQuery('#menu-primary').width() );
  4. /*
  5. // Menu animation
  6.  
  7. jQuery("#access ul ul").css({display: "none"}); // Opera Fix
  8.  
  9. jQuery("#access li").hover(function(){
  10.     jQuery(this).find('ul:first').css({visibility: "visible",display: "none"}).show(250);
  11.     },function(){
  12.     jQuery(this).find('ul:first').css({visibility: "hidden"});
  13.                                 });
  14. // Social Icons Animation
  15.  
  16. jQuery(".socialicons").hover(
  17. function(){
  18.     jQuery(this).animate({"top": "-5px" },{ queue: false, duration:200});
  19.      jQuery(this).css({
  20.                         '-webkit-transform': 'rotate(5deg)',
  21.                         '-moz-transform': 'rotate(5deg)',
  22.                         '-ms-transform': 'rotate(5deg)',
  23.                         '-o-transform': 'rotate(5deg)',
  24.                         'transform': 'rotate(5deg)',
  25.                         'zoom': 1
  26.             });
  27.                     },
  28. function(){
  29.     jQuery(this).animate({ "top": "0px" }, { queue: false, duration:200 });
  30.  jQuery(this).css({
  31.                         '-webkit-transform': 'rotate(0deg)',
  32.                         '-moz-transform': 'rotate(0deg)',
  33.                         '-ms-transform': 'rotate(0deg)',
  34.                         '-o-transform': 'rotate(0deg)',
  35.                         'transform': 'rotate(0deg)',
  36.                         'zoom': 1
  37.             });
  38.  
  39.                     });
  40.  
  41.  
  42. */
  43. }); // ready
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement