-
-
Save paulblamire/cbc099b8d19a6401b71e07414831577c to your computer and use it in GitHub Desktop.
Bootstrap CSS Animate Loading Icon Button
This file contains hidden or 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
<!-- Code snippet --> | |
<div class="form-group"> | |
<div class="col-md-12 text-center"> | |
<span class="glyphicon glyphicon-refresh glyphicon-refresh-animate"></span> | |
</div> | |
</div> |
This file contains hidden or 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
/* | |
Original version: http://www.bootply.com/128062 | |
This version adds support for IE 10+ and Firefox. | |
*/ | |
.glyphicon-refresh-animate { | |
-animation: spin .7s infinite linear; | |
-ms-animation: spin .7s infinite linear; | |
-webkit-animation: spinw .7s infinite linear; | |
-moz-animation: spinm .7s infinite linear; | |
} | |
@keyframes spin { | |
from { transform: scale(1) rotate(0deg);} | |
to { transform: scale(1) rotate(360deg);} | |
} | |
@-webkit-keyframes spinw { | |
from { -webkit-transform: rotate(0deg);} | |
to { -webkit-transform: rotate(360deg);} | |
} | |
@-moz-keyframes spinm { | |
from { -moz-transform: rotate(0deg);} | |
to { -moz-transform: rotate(360deg);} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment