0

I'd like to use jQuery to do more animation, especially with the nav. Do you have any tips for using jQuery animiate()?

flag

1 Answer

1

Here's a cool snippet to animate a nav using jQuery.

var navDuration = 150; //time in miliseconds
      var navJumpHeight = "0.45em";

      $('#nav1 li').hover(function() {
          $(this).animate({ top : "-="+navJumpHeight }, navDuration);            
      }, function() {
          $(this).animate({ top : "15px" }, navDuration);
      });

Reference and example: fun with jQuery

link|flag

Your Answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.