Last active
November 16, 2015 23:02
-
-
Save A1rPun/f669c8e1ea25f282c285 to your computer and use it in GitHub Desktop.
Minimal css animation setup
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
#me { | |
-webkit-animation: rotation 2s infinite linear; | |
-moz-animation: rotation 2s infinite linear; | |
-o-animation: rotation 2s infinite linear; | |
animation: rotation 2s infinite linear; | |
} | |
@-webkit-keyframes rotation { | |
from {-webkit-transform: rotatex(0deg);} | |
to {-webkit-transform: rotatex(359deg);} | |
} | |
@-moz-keyframes rotation { | |
from {-moz-transform: rotatex(0deg);} | |
to {-moz-transform: rotatex(359deg);} | |
} | |
@-o-keyframes rotation { | |
from {-o-transform: rotatex(0deg);} | |
to {-o-transform: rotatex(359deg);} | |
} | |
@keyframes rotation { | |
from {transform: rotatex(0deg);} | |
to {transform: rotatex(359deg);} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment