Skip to content

Instantly share code, notes, and snippets.

@CodeMyUI
Created March 10, 2017 00:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save CodeMyUI/9dc17f3118e1d91cde3eff57de22fc96 to your computer and use it in GitHub Desktop.
Save CodeMyUI/9dc17f3118e1d91cde3eff57de22fc96 to your computer and use it in GitHub Desktop.
meVQpg
<div class="loader">Loading...</div>
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