Last active
June 3, 2020 18:50
-
-
Save rodrigoddc/bc5c67a2d0db9d8286432dbd4878241e to your computer and use it in GitHub Desktop.
Preload de carregamento
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
// load call | |
$(window).on('load', function() { | |
//active loading | |
//loadout | |
$('#preloader').fadeOut(); | |
}); |
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 */ | |
#preloader { | |
position: fixed; | |
top: 0; | |
left: 0; | |
right: 0; | |
bottom: 0; | |
background-color: #fff; | |
z-index: 9999999; | |
} | |
.loader { | |
top: 50%; | |
width: 50px; | |
height: 50px; | |
border-radius: 100%; | |
position: relative; | |
margin: 0 auto; | |
} | |
#loader-1:before, #loader-1:after { | |
content: ""; | |
position: absolute; | |
top: -10px; | |
left: -10px; | |
width: 100%; | |
height: 100%; | |
border-radius: 100%; | |
border: 7px solid transparent; | |
border-top-color: #2EB8A0; | |
} | |
#loader-1:before { | |
z-index: 100; | |
animation: spin 1s infinite; | |
} | |
#loader-1:after { | |
border: 7px solid #f2f2f2; | |
} | |
@keyframes spin { | |
0% { | |
-webkit-transform: rotate(0deg); | |
-ms-transform: rotate(0deg); | |
-o-transform: rotate(0deg); | |
transform: rotate(0deg); | |
} | |
100% { | |
-webkit-transform: rotate(360deg); | |
-ms-transform: rotate(360deg); | |
-o-transform: rotate(360deg); | |
transform: rotate(360deg); | |
} | |
} |
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 id="preloader"> | |
<div class="loader" id="loader-1"> | |
</div> | |
</div> | |
<!-- End Preloader --> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment