Skip to content

Instantly share code, notes, and snippets.

@jafstar
Created June 21, 2012 02:24
Show Gist options
  • Save jafstar/2963474 to your computer and use it in GitHub Desktop.
Save jafstar/2963474 to your computer and use it in GitHub Desktop.
Limelight Outro v1
//EXIT
function Outro(dfd){
var box = $("#services");
//FOR EACH CHILD
box.children().each(function(i){
$(this).delay(i*160).animate({marginTop: 150,opacity: 0}, 500,function(){
if(i == 4){
$('#services').animate({opacity: 0},100);
$('#banner').animate({opacity: 0, marginTop: 50},300);
$('#click').delay(200).animate({opacity: 0, marginTop: 50},300,function(){
$("#content").animate({opacity: 0},200, dfd.resolve);
});
}
});
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment