src/components/img-with-loader/loader/loader.module.css
.loader {
width: 48px;
height: 48px;
border-width: 5px;
border-style: solid;
border-color: var(--text);
border-bottom-color: transparent;
border-radius: 50%;
display: inline-block;
box-sizing: border-box;
animation: rotation 1s linear infinite;
}
@keyframes rotation {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
}