Skip to content

Instantly share code, notes, and snippets.

@colourgarden
Created January 27, 2012 10:40
Show Gist options
  • Save colourgarden/1688228 to your computer and use it in GitHub Desktop.
Save colourgarden/1688228 to your computer and use it in GitHub Desktop.
Spinning timer two
/**
* Spinning timer two
*/
html{
background: #f06;
background: linear-gradient(45deg, #f06, yellow);
min-height:100%;
}
.spinner{
position: absolute;
display: block;
width: 100px;
height: 100px;
left: 50%;
margin-left: -50px;
top: 40%;
background: #fff;
border-radius: 100% 100% 50%;
animation: rotate 1s infinite linear;
}
@keyframes rotate {
to{ transform: rotate(360deg); }
}
<!-- content to be placed inside <body>…</body> -->
<span class="spinner"></span>
{"view":"split","prefixfree":"1","page":"css"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment