Bootstrap's Refresh Icon also spin

  • 2021-07-04 17:38:29
  • OfStack

There is an glyphicon-refresh under bootstrap, but there is no custom dynamic spin [rotation]. Here is my example


.spin{
-webkit-transform-origin: 50% 50%;
transform-origin:50% 50%;
-ms-transform-origin:50% 50%; /* IE 9 */
-webkit-animation: spin .8s infinite linear;
-moz-animation: spin .8s infinite linear;
-o-animation: spin .8s infinite linear;
animation: spin .8s infinite linear;
}
@-webkit-keyframes spin {
0% {
-webkit-transform: rotate(0deg);
transform: rotate(0deg);
}
100% {
-webkit-transform: rotate(359deg);
transform: rotate(359deg);
}
}
@keyframes spin {
0% {
-webkit-transform: rotate(0deg);
transform: rotate(0deg);
}
100% {
-webkit-transform: rotate(359deg);
transform: rotate(359deg);
}
}

Call as follows


<span class="glyphicon glyphicon-refresh loading spin"> </span>

The above is the site to introduce you Bootstrap Refresh Icon also spin up, if you have any questions please give me a message, this site will reply to you in time. Thank you very much for your support to this site!


Related articles: