CSS Spinner
HTML
<html>
<body>
<div id="spinner"></div>
</body>
</html>
CSS
body {
background-color: #bada55;
}
#spinner {
position: absolute;
top: 50%;
left: 50%;
width: 16px;
height: 16px;
padding: 0;
border: none;
background-image: url(http://c279441.r41.cf0.rackcdn.com/spinner2.png);
display: inline-block;
animation-name: spin;
animation-duration: 1.0s;
animation-iteration-count: infinite;
animation-timing-function: steps(8, start);
-webkit-animation-name: spin;
-webkit-animation-duration: 1.0s;
-webkit-animation-iteration-count: infinite;
-webkit-animation-timing-function: steps(8, start);
-moz-animation-name: spin;
-moz-animation-duration: 1.0s;
-moz-animation-iteration-count: infinite;
-moz-animation-timing-function: steps(8, start);
}
@keyframes spin {
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
}
@-webkit-keyframes spin {
from {
-webkit-transform: rotate(0deg);
}
to {
-webkit-transform: rotate(360deg);
}
}
@-moz-keyframes spin {
from {
-moz-transform: rotate(0deg);
}
to {
-moz-transform: rotate(360deg);
}
}