Created
December 6, 2017 15:09
-
-
Save kharakhordindemo/7168805445ad8a00f0c2f047b3d6da3a to your computer and use it in GitHub Desktop.
Preloader
This file contains hidden or 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
<!-- Preloader --> | |
<div class="loader"> | |
<div class="loader-inner"></div> | |
</div> | |
<!-- Preloader End--> |
This file contains hidden or 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
//Preloader | |
$(window).load(function() { | |
$(".loader-inner").fadeOut(); | |
$(".loader").delay(400).fadeOut("slow"); | |
}); |
This file contains hidden or 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
//Preloader | |
.loader { | |
position: fixed; | |
z-index: 9999; | |
bottom: 0; | |
left: 0; | |
right: 0; | |
top: 0; | |
height: 100%; | |
width: 100%; | |
background: none repeat scroll 0 0 #ffffff; | |
.loader-inner { | |
position: absolute; | |
top: 50%; | |
left: 50%; | |
height: 60px; | |
width: 60px; | |
margin-top: -30px; | |
margin-left: -30px; | |
background-image: url("../img/preloader.gif"); | |
background-size: cover; | |
background-repeat: no-repeat; | |
background-position: center center; | |
background-color: #fff; | |
} | |
}//.loader |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment