A Pen by Tyson Matanich on CodePen.
Created
March 10, 2017 00:22
-
-
Save CodeMyUI/9dc17f3118e1d91cde3eff57de22fc96 to your computer and use it in GitHub Desktop.
meVQpg
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
<div class="loader">Loading...</div> |
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
body { background: #0dc5c1; } | |
.loader { | |
overflow: hidden; | |
font-size: 10px; | |
margin: 50px auto; | |
text-indent: -9999em; | |
width: 11em; | |
height: 11em; | |
border-radius: 50%; | |
background: #FFF; | |
background: linear-gradient(to right, #FFF 10%, rgba(255, 255, 255, 0) 42%); | |
position: relative; | |
animation: load3 1.4s infinite linear; | |
transform: translateZ(0); | |
&:before { | |
width: 50%; | |
height: 50%; | |
background: #FFF; | |
border-radius: 100% 0 0 0; | |
position: absolute; | |
top: 0; | |
left: 0; | |
content: ''; | |
} | |
&:after { | |
background: #0dc5c1; | |
width: 75%; | |
height: 75%; | |
border-radius: 50%; | |
content: ''; | |
margin: auto; | |
position: absolute; | |
top: 0; | |
left: 0; | |
bottom: 0; | |
right: 0; | |
opacity: 0.5; | |
} | |
} | |
@-webkit-keyframes load3 { | |
0% { | |
transform: rotate(0deg); | |
} | |
100% { | |
transform: rotate(360deg); | |
} | |
} | |
@keyframes load3 { | |
0% { | |
transform: rotate(0deg); | |
} | |
100% { | |
transform: rotate(360deg); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment