How to do an animation after a page(images and everything) completely loaded with Jquery.( like please wait screen before a page is loading)
Thank You
Update:
I need to hi开发者_运维问答de everything in the page and once everything loaded then only the page has to be show.
$(window).load(function(){
$('#loading').fadeOut('fast');
});
fadeOut() can be changed to antything you want.
Isn't that what the $(document).ready(function(){ /*something*/ });
is all about?
if you want to preload images. refer http://ditio.net/2010/02/14/jquery-preload-images-tutorial-and-example/
精彩评论