src/atoms/Spinner/spinner.css
.background {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: 999;
display: flex;
justify-content: center;
align-items: center;
}
.main {
animation: rotate 2s linear infinite;
}
.dim {
background: rgba(0, 0, 0, 0.3);
}
@keyframes rotate {
100% {
transform: rotate(360deg);
}
}
.path {
stroke-linecap: round;
stroke-dasharray: 89, 200;
stroke-dashoffset: -35px;
fill: none;
stroke-width: 3;
stroke: white;
animation: dash 1.5s ease-in-out infinite;
}
@keyframes dash {
0% {
stroke-dasharray: 1, 200;
stroke-dashoffset: 0;
}
50% {
stroke-dasharray: 89, 200;
stroke-dashoffset: -35px;
}
100% {
stroke-dasharray: 89, 200;
stroke-dashoffset: -124px;
}
}