Skip to content

Instantly share code, notes, and snippets.

@dziudek
Created December 25, 2012 19:31
Show Gist options
  • Save dziudek/4374991 to your computer and use it in GitHub Desktop.
Save dziudek/4374991 to your computer and use it in GitHub Desktop.
CSS loader I
/**
* CSS loader I
*/
#loader {
animation-name: loading;
animation-duration: 2s;
animation-iteration-count: infinite;
background: #ccc;
border-radius: 50%;
border-left: 0px solid #d44;
border-right: 0px solid #d44;
box-sizing: border-box;
height: 20px;
margin: 100px;
width: 20px;
}
@keyframes loading {
from {
border-left: 20px solid #d44;
}
50% {
border-left: 0px solid #d44;
}
51% {
border-right: 0px solid #d44;
}
to {
border-right: 20px solid #d44;
}
}
<div id="loader"></div>
// alert('Hello world!');
{"view":"split","fontsize":"100","seethrough":"","prefixfree":"1","page":"css"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment