Created
October 29, 2013 13:29
-
-
Save steppefox/7214637 to your computer and use it in GitHub Desktop.
CSS3 infinite spin
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
.spin{ | |
-webkit-animation: spin 1s infinite linear; | |
-moz-animation: spin 1s infinite linear; | |
-o-animation: spin 1s infinite linear; | |
animation: spin 1s infinite linear; | |
} | |
@-moz-keyframes spin { | |
0% { | |
-moz-transform: rotate(0deg); | |
} | |
100% { | |
-moz-transform: rotate(359deg); | |
} | |
} | |
@-webkit-keyframes spin { | |
0% { | |
-webkit-transform: rotate(0deg); | |
} | |
100% { | |
-webkit-transform: rotate(359deg); | |
} | |
} | |
@-o-keyframes spin { | |
0% { | |
-o-transform: rotate(0deg); | |
} | |
100% { | |
-o-transform: rotate(359deg); | |
} | |
} | |
@-ms-keyframes spin { | |
0% { | |
-ms-transform: rotate(0deg); | |
} | |
100% { | |
-ms-transform: rotate(359deg); | |
} | |
} | |
@keyframes spin { | |
0% { | |
transform: rotate(0deg); | |
} | |
100% { | |
transform: rotate(359deg); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment