1

Can anyone show me how to play a loading animation until the webpage fully loads? I have no clue where to start so any help is appreciated!

Tyharo
  • 383
  • 2
  • 5
  • 23

2 Answers2

3

I never build a loader before, but this is a start... you can start by

hiding everything but loader with css, using $(window).load to test, if the page is loaded such as.

$("#loader").animate(
        // your loader animation   
);

$(window).load(
    function() {
        // display content with .show() 
    }
);
aahhaa
  • 2,240
  • 3
  • 19
  • 30
1

Thanks for the quick response! I actually ran across the page below giving a nice basic setup for it:

http://bradsknutson.com/blog/display-loading-image-while-page-loads/

Tyharo
  • 383
  • 2
  • 5
  • 23