Last active
March 27, 2018 07:23
-
-
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)
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
@-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; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
See it working at: http://jsfiddle.net/pbatey/uwjuha8p/