Skip to content

Instantly share code, notes, and snippets.

@jordangray
Created February 8, 2012 22:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jordangray/1774920 to your computer and use it in GitHub Desktop.
Save jordangray/1774920 to your computer and use it in GitHub Desktop.
Messing about with keyframe animation
/**
* Messing about with keyframe animation
*/
@keyframes rot {
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
}
.orbit {
border-top: 10px solid #aeF;
border-radius: 100px;
height: 200px;
width: 200px;
left: 200px;
top: 100px;
position: absolute;
animation: 2s rot infinite linear;
}
<div class="orbit"></div>
{"view":"split","prefixfree":"1","page":"css"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment