Spinner

.container {
    margin: 0 auto;
    width: 30px;
    justify-content: space-around;
    align-items: center;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    position: absolute;
 
}
.spinner--quarter {
    width: 48px;
    border: 5px solid var(--spinner-color);
    border-top-color: transparent;
    animation-duration: 1s;
    display: block;
}
.spinner {
    --spinner-color: #ffffff;
    aspect-ratio: 1/1;
    border-radius: 50%;
    animation-name: spin;
    animation-iteration-count: infinite;
    animation-timing-function: linear;
}
/* Keyframes Spin */
@keyframes spin {
	from {
		transform: rotate(0deg);
	}
	to {
		transform: rotate(360deg);
	}
}
<div class="container"><span class="spinner spinner--quarter"></span></div>  
Comments