Profile image for Alexander Kirichev kirichev
First we have an element, that stays (in this case - progress indicator). After 2,5 seconds fades out for 500ms, and content under this element fades in. div#content should have "display: none;"
Language
JavaScript
Tags
fadein fadeout jquery timeout
Favorited By
Profile image for Der Dools Profile image for Peter Schneider Profile image for Alexander Kirichev Profile image for Theoni Nuin Profile image for Fran Hanyok Profile image for shai alon Profile image for Kevin Schueller Profile image for Björn Andersson

FadeIn and FadeOut with timeout

1 jQuery(document).ready(function(){ 2 setTimeout(function(){ 3 $("div.loader").fadeOut( 500, function(){ 4 $("div#content").fadeIn( 3000); 5 }); 6 }, 2500); 7 });

Comments