Created
November 20, 2020 10:17
-
-
Save polyakoff/6cfbfd37c23a1dce865ac918570c16bd to your computer and use it in GitHub Desktop.
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
#html | |
<div class="cssload-container"> | |
<div class="cssload-whirlpool"></div> | |
</div> | |
#css | |
.cssload-container{ | |
position:relative; | |
} | |
.cssload-whirlpool, | |
.cssload-whirlpool::before, | |
.cssload-whirlpool::after { | |
position: absolute; | |
top: 50%; | |
left: 50%; | |
border: 2px solid rgb(59,56,59); | |
border-left-color: rgba(255,13,13,0.95); | |
border-radius: 2123px; | |
-o-border-radius: 2123px; | |
-ms-border-radius: 2123px; | |
-webkit-border-radius: 2123px; | |
-moz-border-radius: 2123px; | |
} | |
.cssload-whirlpool { | |
margin: -53px 0 0 -53px; | |
height: 106px; | |
width: 106px; | |
animation: cssload-rotate 700ms linear infinite; | |
-o-animation: cssload-rotate 700ms linear infinite; | |
-ms-animation: cssload-rotate 700ms linear infinite; | |
-webkit-animation: cssload-rotate 700ms linear infinite; | |
-moz-animation: cssload-rotate 700ms linear infinite; | |
} | |
.cssload-whirlpool::before { | |
content: ""; | |
margin: -49px 0 0 -49px; | |
height: 94px; | |
width: 94px; | |
animation: cssload-rotate 700ms linear infinite; | |
-o-animation: cssload-rotate 700ms linear infinite; | |
-ms-animation: cssload-rotate 700ms linear infinite; | |
-webkit-animation: cssload-rotate 700ms linear infinite; | |
-moz-animation: cssload-rotate 700ms linear infinite; | |
} | |
.cssload-whirlpool::after { | |
content: ""; | |
margin: -62px 0 0 -62px; | |
height: 119px; | |
width: 119px; | |
animation: cssload-rotate 1400ms linear infinite; | |
-o-animation: cssload-rotate 1400ms linear infinite; | |
-ms-animation: cssload-rotate 1400ms linear infinite; | |
-webkit-animation: cssload-rotate 1400ms linear infinite; | |
-moz-animation: cssload-rotate 1400ms 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