Skip to content

Instantly share code, notes, and snippets.

@jdkealy
Created October 21, 2011 07:35
Show Gist options
  • Save jdkealy/1303302 to your computer and use it in GitHub Desktop.
Save jdkealy/1303302 to your computer and use it in GitHub Desktop.
$("#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