Skip to content

Instantly share code, notes, and snippets.

@dziudek
Created May 16, 2013 11:14
Show Gist options
  • Save dziudek/5591009 to your computer and use it in GitHub Desktop.
Save dziudek/5591009 to your computer and use it in GitHub Desktop.
CSS loader III
/**
*
* CSS loader III
*
**/
#loader {
animation-name: loader;
animation-duration: 2s;
animation-iteration-count: infinite;
animation-direction: reverse;
animation-timing-function: linear;
background: #ee6;
background-clip:content-box;
border: 8px dotted #ee6;
border-radius: 50%;
box-sizing: border-box;
float: left;
height: 52px;
position: relative;
width: 52px;
}
@keyframes loader {
from {
transform: rotateZ(0deg);
border-width: 6px;
}
50% {
transform: rotateZ(180deg);
border-width: 8px;
}
to {
transform: rotateZ(360deg);
border-width: 6px;
}
}
<!-- content to be placed inside <body>…</body> -->
<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