pinafore/routes/_components/LoadingSpinner.html
2018-02-22 22:10:05 -08:00

28 lines
559 B
HTML

<svg class="loading-spinner-icon {{maskStyle ? 'mask-style' : ''}}"
style="width: {{size || 64}}px; height: {{size || 64}}px;"
aria-label="Loading"
>
<use xlink:href="#fa-spinner" />
</svg>
<style>
.loading-spinner-icon {
fill: var(--svg-fill);
animation: spin 2s infinite linear;
}
.loading-spinner-icon.mask-style {
fill: var(--mask-svg-fill);
}
@keyframes spin {
0% {
transform: rotate(0deg);
}
50% {
transform: rotate(180deg);
}
100% {
transform: rotate(360deg);
}
}
</style>