Just another WordPress site

Gif loader before page loads completely

The technique behind showing a gif loader before page loads completely is very easy. Basically what it is doing ?
It is first displayed as a normal div but with the condition of jquery it will hide when the browser is completely loads. Similarly it will add a class to website container that makes it visible.

Gif loader before page loads completely


$(window).load(function() {
      $("#spinner").fadeOut("slow");
})

<div id="spinner"></div>

The post Gif loader before page loads completely appeared first on Santosh Shah.


Leave a Reply

Your email address will not be published. Required fields are marked *