Skip to content

Instantly share code, notes, and snippets.

@pbatey
Last active March 27, 2018 07:23
Show Gist options
  • Save pbatey/19731d6ec323679b3ae1 to your computer and use it in GitHub Desktop.
Save pbatey/19731d6ec323679b3ae1 to your computer and use it in GitHub Desktop.
CSS to add steps to font-awesome's spinner icon (fa fa-spinner fa-spin)
@-webkit-keyframes spinner-spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@-moz-keyframes spinner-spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@-o-keyframes spinner-spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@-ms-keyframes spinner-spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes spinner-spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.fa-spinner.fa-spin {
-webkit-animation: spinner-spin 1s steps(8) infinite;
-moz-animation: spinner-spin 1s steps(8) infinite;
-o-animation: spinner-spin 1s steps(8) infinite;
animation: spinner-spin 1s steps(8) infinite;
}
@pbatey
Copy link
Author

pbatey commented Oct 24, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment