JSFiddle - React, Tailwind, and code Playground
by Prathameshsb
HTML
<div class="loader"></div>
CSS
.loader {
border: 8px solid lightgrey;
border-top: 8px solid blue;
border-radius: 50%;
width: 50px;
height: 50px;
animation: spin 1s linear infinite;
}
@keyframes spin {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
}