JSFiddle - React, Tailwind, and code Playground
HTML
<div class="loader">Loading...</div>
CSS
body { background: transparent; }
.loader {
color: #ffffff;
font-size: 90px;
text-indent: -9999em;
width: 1em;
height: 1em;
border-radius: 50%;
margin: 72px auto;
position: relative;
-webkit-transform: translateZ(0);
-ms-transform: translateZ(0);
transform: translateZ(0);
-webkit-animation: load6 2s infinite ease, round 2s infinite ease;
animation: load6 2s infinite ease, round 2s infinite ease;
}
.loader:before {
content: '';
border: 1px solid #fff;
width: 100%;
height: 100%;
display: block;
border-radius: 100%;
position: absolute;
z-index: 10;
}
@keyframes load6 {
0%, 100% {
box-shadow: 0 -0.6em 0 -0.4em, 0 -0.6em 0 -0.4em; }
5%, 95% {
box-shadow: 0 -0.6em 0 -0.4em, -0.5em -0.3em 0 -0.4em; }
25%, 75% {
box-shadow: 0 -0.6em 0 -0.4em, -0.44em 0.44em 0 -0.4em; }
50% {
box-shadow: 0 -0.6em 0 -0.4em, 0.44em 0.44em 0 -0.4em; }
}