Skip to content

Instantly share code, notes, and snippets.

@kellishaver
Created October 22, 2013 03:18
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 kellishaver/7094686 to your computer and use it in GitHub Desktop.
Save kellishaver/7094686 to your computer and use it in GitHub Desktop.
A Pen by Kelli Shaver.
<div class="loading">loading</div>
body {
background: #035;
}
.loading {
color:#777;
font-family:helvetica, arial, sans-serif;
font-size:13px;
font-weight:normal;
height: 100px;
left:50%;
line-height:100px;
margin:-50px 0 0 -50px;
position: absolute;
text-align:center;
text-shadow:1px 1px 1px #000;
text-transform:uppercase;
top:50%;
width: 100px;
z-index:200;
}
.loading:before {
background:#222;
border-radius:10px;
content:'';
height: 140px;
left:50%;
margin:-70px 0 0 -70px;
position: absolute;
top:50%;
width: 140px;
z-index:-2;
}
.loading:after {
animation: rotate 2s infinite linear;
border:1px solid #555;
border-radius: 100%;
box-shadow:2px 2px #fff;
content:'';
height: 100px;
left:50%;
margin:-50px 0 0 -50px;
position: absolute;
text-align:center;
text-transform:uppercase;
top:50%;
width: 100px;
z-index:-1;
}
@keyframes rotate {
0% {
transform: rotateZ(0deg);
}
100% {
transform: rotateZ(360deg);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment