JSFiddle - React, Tailwind, and code Playground
by Ravindra Athreya
HTML
<div class="container">
<h3>Animated button</h3>
<span class="glyphicon glyphicon-refresh glyphicon-refresh-animate"></span>
</div>
CSS
/* Latest compiled and minified CSS included as External Resource*/
/* Optional theme */
@import url('http://getbootstrap.com/dist/css/bootstrap.css');
.glyphicon-refresh{
font-size:2em;
color:blue;
}
.glyphicon-refresh-animate {
-animation: spin .7s infinite linear;
-webkit-animation: spin2 .7s infinite linear;
}
@-webkit-keyframes spin2 {
from { -webkit-transform: rotate(0deg);}
to { -webkit-transform: rotate(360deg);}
}
@keyframes spin {
from { transform: scale(1) rotate(0deg);}
to { transform: scale(1) rotate(360deg);}
}