Created
January 19, 2020 17:21
-
-
Save levenokk/f26d010e0fe0ed0b407d1e9248b3a7ae to your computer and use it in GitHub Desktop.
preloader style
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 { | |
position: fixed; | |
top: 0; | |
left: 0; | |
width: 100%; | |
height: 100%; | |
background-color: $darkGray; | |
z-index: 9999999999; | |
-webkit-transition: all 1s linear; | |
transition: all 1s linear; | |
visibility: visible; | |
&.done{ | |
opacity: 0; | |
visibility: hidden; | |
} | |
} | |
.loader { | |
width: 75px; | |
height: 75px; | |
border: 10px solid #fff; | |
border-radius: 50%; | |
border-top-color: $red; | |
position: absolute; | |
left: 50%; | |
top: 50%; | |
-webkit-transform: translate(-50%, -50%); | |
transform: translate(-50%, -50%); | |
-webkit-animation: 1s spin infinite linear; | |
animation: 1s spin infinite linear; | |
} | |
@-webkit-keyframes spin{ | |
from{ | |
-webkit-transform: translate(-50%, -50%) rotate(0deg); | |
transform: translate(-50%, -50%) rotate(0deg); | |
} | |
to{ | |
-webkit-transform: translate(-50%, -50%) rotate(360deg); | |
transform: translate(-50%, -50%) rotate(360deg); | |
} | |
} | |
@keyframes spin{ | |
from{ | |
-webkit-transform: translate(-50%, -50%) rotate(0deg); | |
transform: translate(-50%, -50%) rotate(0deg); | |
} | |
to{ | |
-webkit-transform: translate(-50%, -50%) rotate(360deg); | |
transform: translate(-50%, -50%) rotate(360deg); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment