tobiasahlin / SpinKit

A collection of loading indicators animated with CSS
http://tobiasahlin.com/spinkit/
MIT License
19.35k stars 1.81k forks source link

how use set time finish loadpage #116

Closed tuan-ph closed 4 years ago

tuan-ph commented 8 years ago

hi, i don't now finish loading page. help me. please show code demo loadpage about 1s or 2s. Thank you!

aleksanderem commented 8 years ago

I don't know if I know what's on your mind but if You need to for example fade out preloader after page is loaded just use:

in html ( first spinner example ) <div class="spinner"></div>

and in js ( jQuery ) $(window).on('load',function(){ $('.spinner').fadeOut(); });