Skip to content

Instantly share code, notes, and snippets.

@adaoex
Created September 23, 2016 17:00
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 adaoex/45e40c786740e82f4fbcdc37f6b60601 to your computer and use it in GitHub Desktop.
Save adaoex/45e40c786740e82f4fbcdc37f6b60601 to your computer and use it in GitHub Desktop.
Bootstrap - animação de botões de carregamento (loading) com CSS
<!-- 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