platojs
Version:
Libraries of PLATO
47 lines (39 loc) • 786 B
CSS
.c-spinner {
display: inline-block;
text-align: center;
box-sizing: border-box;
&.snake {
animation: c-spinner-snake 0.8s infinite linear;
border-color: color(white lightness(80%)) transparent color(white lightness(80%)) color(white lightness(80%));
border-style: solid;
border-width: dpr(4px);
border-radius: 50%;
width: dpr(48px);
height: dpr(48px);
display: inline-block;
}
&.xlarge {
width: dpr(80px);
height: dpr(80px);
}
&.large {
width: dpr(64px);
height: dpr(64px);
}
&.small {
width: dpr(32px);
height: dpr(32px);
}
&.xsmall {
width: dpr(24px);
height: dpr(24px);
}
}
@keyframes c-spinner-snake {
0% {
transform: rotate(0deg);
}
to {
transform: rotate(1turn);
}
}