mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2025-01-11 12:37:22 +01:00
35 lines
681 B
CSS
35 lines
681 B
CSS
|
@keyframes spinner {
|
||
|
0% {
|
||
|
transform: rotate(0);
|
||
|
stroke-dasharray: 0 0 10 90;
|
||
|
}
|
||
|
45% {
|
||
|
stroke-dasharray: 0 0 90 10;
|
||
|
}
|
||
|
75% {
|
||
|
stroke-dasharray: 0 50 50 0;
|
||
|
}
|
||
|
100% {
|
||
|
transform: rotate(360deg);
|
||
|
stroke-dasharray: 10 90 0 0;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
.spinner circle {
|
||
|
transform-origin: 50% 50%;
|
||
|
animation-name: spinner;
|
||
|
animation-duration: 2s;
|
||
|
animation-iteration-count: infinite;
|
||
|
animation-timing-function: linear;
|
||
|
fill: none;
|
||
|
stroke: currentcolor;
|
||
|
stroke-width: calc(var(--size) * 0.1);
|
||
|
stroke-linecap: butt;
|
||
|
}
|
||
|
|
||
|
.spinner {
|
||
|
--size: 20px;
|
||
|
width: var(--size);
|
||
|
height: var(--size);
|
||
|
}
|