Created
October 10, 2017 19:01
-
-
Save Junglecrew/155457a68d4abc6777f3364b01363310 to your computer and use it in GitHub Desktop.
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
<style> | |
.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; | |
} | |
.loader .loader_inner { | |
background-image: url("../img/preloader.gif"); | |
background-size: cover; | |
background-repeat: no-repeat; | |
background-posirion: center center; | |
background-color: #fff; | |
height: 60px; | |
width: 60px; | |
margin-top: -30px; | |
margin-left: -30px; | |
left: 50%; | |
top: 50%; | |
position: absolute; | |
} | |
</style> | |
<div class="loader"> | |
<div class="loader_inner"></div> | |
</div> | |
<script src="https://code.jquery.com/jquery-1.11.2.min.js"></script> | |
<script> | |
$(window).load(function() { | |
$(".loader_inner").fadeOut(); | |
$(".loader").delay(400).fadeOut("slow"); | |
}); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment