开发者

Jquery animation after complete page loaded

开发者 https://www.devze.com 2023-02-15 22:53 出处:网络
How to do an animation after a page(images and everything) completely loaded with Jquery.( like please wait screen before a page is loading)

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/

0

精彩评论

暂无评论...
验证码 换一张
取 消