Skip to content

Instantly share code, notes, and snippets.

@A1rPun
Last active November 16, 2015 23:02
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 A1rPun/f669c8e1ea25f282c285 to your computer and use it in GitHub Desktop.
Save A1rPun/f669c8e1ea25f282c285 to your computer and use it in GitHub Desktop.
Minimal css animation setup
#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