Skip to content

Instantly share code, notes, and snippets.

@psdcoder
Created January 21, 2015 21:13
Show Gist options
  • Select an option

  • Save psdcoder/6b6c413c509a177a3094 to your computer and use it in GitHub Desktop.

Select an option

Save psdcoder/6b6c413c509a177a3094 to your computer and use it in GitHub Desktop.
NPjJxw
<div id="loader"></div>
html, body {
height: 100%;
}
body {
background-color: #363b4a;
display: flex;
align-items: center;
justify-content: center;
}
#loader {
position: relative;
width: 40px;
height: 40px;
}
#loader:after {
content: ' ';
position: absolute;
left: 0;
top: 0;
right: 0;
bottom: 0;
display: block;
border-top: 1px solid #888;
border-bottom: 1px solid #888;
border-left: 1px solid #888;
border-right: 1px solid #fff;
border-radius: 50%;
animation: rotating 0.8s linear infinite;
}
@keyframes rotating {
from {
transform: rotateZ(-360deg);
}
to {
transform: rotateZ(0deg);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment