JSFiddle - React, Tailwind, and code Playground

HTML

<div class="spinner">
    <div class="inner"></div>
</div>

CSS

body{
    background-color: #333;
}

.spinner{
    width: 100px;
    height: 100px;
    border-radius: 54px;
    border: 4px solid #999;
    position: relative;
}

.inner {
    position: absolute;
    top: -4px;
    left: -4px;
    border: 4px solid #fff;
    border-radius: 54px;
    height: 100px;
    width: 100px;
    clip: rect(0px, 60px, 50px, 0px);
    
    -moz-animation:rotate 2s;  
    -moz-animation-timing-function: linear;
    -moz-animation-iteration-count: infinite;
    
    -webkit-animation:rotate 2s;  
    -webkit-animation-timing-function: linear;
    -webkit-animation-iteration-count: infinite;
    
    -ms-animation:rotate 2s;  
    -ms-animation-timing-function: linear;
    -ms-animation-iteration-count: infinite;
    
    animation:rotate 2s;  
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

@-moz-keyframes rotate {
    0% {
        -moz-transform: rotate(0deg);
    }
    100% {
        -moz-transform: rotate(360deg);
    }
}

@-webkit-keyframes rotate {
    0% {
        -webkit-transform: rotate(0deg);
    }
    100% {
        -webkit-transform: rotate(360deg);
    }
}

@-ms-keyframes rotate {
    0% {
        -ms-transform: rotate(0deg);
    }
    100% {
        -ms-transform: rotate(360deg);
    }
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}