Created
October 21, 2011 07:35
-
-
Save jdkealy/1303302 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$("#header").hoverIntent({ | |
over: makeTall, | |
timeout: 500, | |
out: makeShort | |
}); | |
function makeTall(){ | |
$(this).animate({"height":140},200); | |
$('#main').animate({"margin-top":140},200); | |
$('.nav').fadeIn(); | |
} | |
function makeShort(){ | |
$(this).animate({"height":50},200); | |
$('#main').animate({"margin-top":50},200); | |
$('.nav').fadeOut(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment