Skip to content

Instantly share code, notes, and snippets.

@andonovn
Created January 10, 2017 20:38
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 andonovn/846ce067bcc34da876ed70e6cc82fef9 to your computer and use it in GitHub Desktop.
Save andonovn/846ce067bcc34da876ed70e6cc82fef9 to your computer and use it in GitHub Desktop.
CSS rotate - useful for loaders
.is-rotating {
-webkit-animation:spin 1s linear infinite;
-moz-animation:spin 1s linear infinite;
animation:spin 1s linear infinite;
}
@-moz-keyframes spin { 100% { -moz-transform: rotate(360deg); } }
@-webkit-keyframes spin { 100% { -webkit-transform: rotate(360deg); } }
@keyframes spin { 100% { -webkit-transform: rotate(360deg); transform:rotate(360deg); } }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment