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!
Asked
Active
Viewed 1.1k times
2 Answers
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