Created
February 9, 2012 07:34
-
-
Save laukstein/1778140 to your computer and use it in GitHub Desktop.
CSS3 spinner
This file contains hidden or 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
@keyframes rotate{ | |
from{ | |
transform:rotate(0deg) translate(-10px) rotate(0deg); | |
background-color:green; | |
} | |
to{ | |
transform:rotate(360deg) translate(-10px) rotate(-360deg); | |
background-color:yellow; | |
} | |
} | |
.spinner{ | |
position:relative; | |
top:0; | |
left:10px; | |
display:inline-block; | |
width:8px; | |
height:8px; | |
background-color:#green; | |
border-radius:5px; | |
animation:.2s rotate infinite linear; | |
} | |
This file contains hidden or 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
CSS3 spinner <div class=spinner></div> |
This file contains hidden or 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","prefixfree":"1","page":"css"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment