Created
May 29, 2015 03:07
-
-
Save fnnzzz/b4a148d91b60e9490da2 to your computer and use it in GitHub Desktop.
better preloader
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#loader { | |
background: none repeat scroll 0 0 #ffffff; | |
bottom: 0; | |
height: 100%; | |
left: 0; | |
position: fixed; | |
right: 0; | |
top: 0; | |
width: 100%; | |
z-index: 9999; | |
} | |
#loaderInner { | |
height: 80px; | |
width: 80px; | |
margin-top: -40px; | |
margin-left: -40px; | |
left: 50%; | |
top: 50%; | |
position: absolute; | |
} | |
.spinner { | |
width: 100%; | |
height: 100%; | |
position: relative; | |
margin: 0 auto; | |
} | |
<div id="loader"> | |
<div id="loaderInner"> | |
<div class="spinner"> | |
<div class="double-bounce1"></div> | |
<div class="double-bounce2"></div> | |
</div> | |
</div> | |
</div> | |
$(window).load(function() { | |
$("#loaderInner").fadeOut(); | |
$("#loader").delay(400).fadeOut("slow"); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment