JSFiddle - React, Tailwind, and code Playground
by Newton Anbarasu
HTML
<div class="container text-center">
<div class="row">
<div class="col-sm-2">
<div class="sp sp-circle"></div>
</div>
</div>
</div>
CSS
body {
background-color: #f9f9f9;
margin-top: 25px;
}
.col-sm-2 {
padding: 10px;
border-radius: 4px;
height: 125px;
margin-bottom: 10px;
}
.sp {
width: 32px;
height: 32px;
clear: both;
margin: 20px auto;
}
/* Spinner Circle Rotation */
.sp-circle {
border: 4px rgba(0, 0, 0, 0.25) solid;
border-top: 4px black solid;
border-radius: 50%;
-webkit-animation: spCircRot .6s infinite linear;
animation: spCircRot .6s infinite linear;
}
@-webkit-keyframes spCircRot {
from {
-webkit-transform: rotate(0deg);
}
to {
-webkit-transform: rotate(359deg);
}
}
@keyframes spCircRot {
from {
transform: rotate(0deg);
}
to {
transform: rotate(359deg);
}
}