JSFiddle - React, Tailwind, and code Playground
by Keith Jeter
HTML
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css">
<script src="https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap"></script>
<div class="bc_full_wrap">
<div class="bc_ani_wrap">
<span class="center_number">5</span>
<div class="fa fa-circle-o-notch fa-spin fa-3x fa-fw"></div>
</div>
<div class="cent_txt">MILES</div>
</div>
<div class="bc_full_wrap">
<div class="bc_ani_wrap">
<span class="center_number">89</span>
<div class="fa fa-circle-o-notch fa-spin fa-3x fa-fw"></div>
</div>
<div class="cent_txt">MILES</div>
</div>
<div class="bc_full_wrap">
<div class="bc_ani_wrap">
<span class="center_number">999</span>
<div class="fa fa-circle-o-notch fa-spin fa-3x fa-fw"></div>
</div>
<div class="cent_txt">MILES</div>
</div>
CSS
body {
font-family: 'Roboto', sans-serif;
}
.bc_full_wrap {
position: relative;
display: block;
float: left;
margin: 10px;
overflow: hidden;
width: 60px;
height: 80px;
}
.bc_ani_wrap {
position: relative;
display: block;
overflow: hidden;
width: 62px;
height: 60px;
}
.bc_ani_wrap .fa {
color: #064c7b;
margin-top: 5px;
}
.center_number {
color: #064c7b;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
font-size: 18px;
font-weight: bold;
}
.cent_txt {
color: #064c7b;
font-size: 16px;
font-weight: bold;
text-align: center;
}
@-webkit-keyframes spinn {
0% { -webkit-transform: rotate(0deg); }
100% { -webkit-transform: rotate(360deg); }
}