Skip to content

Instantly share code, notes, and snippets.

@heroheman
Created October 6, 2011 14:57
Show Gist options
  • Save heroheman/1267611 to your computer and use it in GitHub Desktop.
Save heroheman/1267611 to your computer and use it in GitHub Desktop.
jQuery: Height Toggle
$('#toggleReiseziele').click(function(){
if($(this).hasClass('toggleUp')){
$('#footer').animate({height:'500'},'slow');
}else{
$('#footer').animate({height:'200'},'slow');
}
$('#toggleReiseziele').toggleClass('toggleUp');
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment