Skip to content

Instantly share code, notes, and snippets.

@paulblamire
Forked from alexandrevicenzi/index.html
Created March 23, 2017 08:50
Show Gist options
  • Save paulblamire/cbc099b8d19a6401b71e07414831577c to your computer and use it in GitHub Desktop.
Save paulblamire/cbc099b8d19a6401b71e07414831577c to your computer and use it in GitHub Desktop.
Bootstrap CSS Animate Loading Icon Button
<!-- Code snippet -->
<div class="form-group">
<div class="col-md-12 text-center">
<span class="glyphicon glyphicon-refresh glyphicon-refresh-animate"></span>
</div>
</div>
/*
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