Created
February 24, 2012 18:13
-
-
Save jordangray/1902503 to your computer and use it in GitHub Desktop.
Messing about with keyframe animation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 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; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="orbit"></div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"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