Skip to content

Instantly share code, notes, and snippets.

@jordangray
Created February 24, 2012 18:13
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/1902503 to your computer and use it in GitHub Desktop.
Save jordangray/1902503 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 {
height: 200px;
width: 200px;
left: 200px;
top: 100px;
position: absolute;
}
.orbit:before {
border-bottom: 10px solid #aeF;
border-radius: 100px;
content: "";
display: block;
height: 200px;
width: 200px;
animation: 2s rot infinite linear;
}
<div class="orbit"></div>
{"view":"split","seethrough":"","prefixfree":"1","page":"all"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment