Last active
December 19, 2022 02:09
-
-
Save noherczeg/f76a608003484c98b52f9968c641a3ec to your computer and use it in GitHub Desktop.
preloader css
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
<section> | |
<br /> | |
<br /> | |
<br /> | |
<div class="preloader-whirlpool"> | |
<div class="whirlpool"></div> | |
</div> | |
</section> |
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
/*=======Markup===== | |
<div class="preloader-whirlpool"> | |
<div class="whirlpool"></div> | |
</div> | |
*/ | |
.preloader-whirlpool { | |
position: relative; | |
.whirlpool { | |
position: absolute; | |
top: 50%; | |
left: 50%; | |
border: 1px solid rgb(204, 204, 204); | |
border-left-color: rgb(0, 0, 0); | |
border-radius: 974px; | |
-o-border-radius: 974px; | |
-ms-border-radius: 974px; | |
-webkit-border-radius: 974px; | |
-moz-border-radius: 974px; | |
&::before, &::after { | |
position: absolute; | |
top: 50%; | |
left: 50%; | |
border: 1px solid rgb(204, 204, 204); | |
border-left-color: rgb(0, 0, 0); | |
border-radius: 974px; | |
-o-border-radius: 974px; | |
-ms-border-radius: 974px; | |
-webkit-border-radius: 974px; | |
-moz-border-radius: 974px; | |
} | |
margin: -24px 0 0 -24px; | |
height: 49px; | |
width: 49px; | |
animation: cssload-rotate 1150ms linear infinite; | |
-o-animation: cssload-rotate 1150ms linear infinite; | |
-ms-animation: cssload-rotate 1150ms linear infinite; | |
-webkit-animation: cssload-rotate 1150ms linear infinite; | |
-moz-animation: cssload-rotate 1150ms linear infinite; | |
&::before { | |
content: ""; | |
margin: -22px 0 0 -22px; | |
height: 43px; | |
width: 43px; | |
animation: cssload-rotate 1150ms linear infinite; | |
-o-animation: cssload-rotate 1150ms linear infinite; | |
-ms-animation: cssload-rotate 1150ms linear infinite; | |
-webkit-animation: cssload-rotate 1150ms linear infinite; | |
-moz-animation: cssload-rotate 1150ms linear infinite; | |
} | |
&::after { | |
content: ""; | |
margin: -28px 0 0 -28px; | |
height: 55px; | |
width: 55px; | |
animation: cssload-rotate 2300ms linear infinite; | |
-o-animation: cssload-rotate 2300ms linear infinite; | |
-ms-animation: cssload-rotate 2300ms linear infinite; | |
-webkit-animation: cssload-rotate 2300ms linear infinite; | |
-moz-animation: cssload-rotate 2300ms linear infinite; | |
} | |
} | |
} | |
@keyframes cssload-rotate { | |
100% { | |
transform: rotate(360deg); | |
} | |
} | |
@-o-keyframes cssload-rotate { | |
100% { | |
-o-transform: rotate(360deg); | |
} | |
} | |
@-ms-keyframes cssload-rotate { | |
100% { | |
-ms-transform: rotate(360deg); | |
} | |
} | |
@-webkit-keyframes cssload-rotate { | |
100% { | |
-webkit-transform: rotate(360deg); | |
} | |
} | |
@-moz-keyframes cssload-rotate { | |
100% { | |
-moz-transform: rotate(360deg); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment