JSFiddle - React, Tailwind, and code Playground
by Ayyappan Sakthivadivel
HTML
<div class="wrapper">
<div class="loader"></div>
</div>
CSS
.wrapper{
width: 100%;
height: 100%;
background: url("https://axmsoftui.azurewebsites.net/stage-desktop/image/axim-logo.svg") no-repeat center center;
background-size: 40px;
position: absolute;
offset: 0;
margin: 0 auto;
display: flex;
border: #1c3051 solid 2px;
justify-content: center;
align-content: center;
flex-wrap: wrap;
}
.loader {
width: 100px;
height: 100px;
border-radius: 50%;
display: inline-block;
position: relative;
box-sizing: border-box;
animation: rotation 2s linear infinite;
color: #fff;
}
.loader::after {
content: '';
box-sizing: border-box;
position: absolute;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
width: 80px;
height: 80px;
border-radius: 50%;
border: 4px solid;
border-color: #1c3051 transparent;
}
@keyframes rotation {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
}