[DEV] simplify spiner

This commit is contained in:
Edouard DUPIN 2023-01-08 12:17:28 +01:00
parent 9752354a51
commit 0ac8715c61
3 changed files with 1 additions and 40 deletions

View File

@ -1,6 +0,0 @@
<div>
<svg class="spinner" viewBox="0 0 50 50">
<circle class="path" cx="25" cy="25" r="20" fill="none" stroke-width="5"></circle>
</svg>
</div>

View File

@ -1,32 +0,0 @@
.spinner {
animation: rotate 2s linear infinite;
z-index: 2;
width: 50px;
height: 50px;
& .path {
stroke: rgb(31, 31, 31);
stroke-linecap: round;
animation: dash 1.5s ease-in-out infinite;
}
}
@keyframes rotate {
100% {
transform: rotate(360deg);
}
}
@keyframes dash {
0% {
stroke-dasharray: 1, 150;
stroke-dashoffset: 0;
}
50% {
stroke-dasharray: 90, 150;
stroke-dashoffset: -35;
}
100% {
stroke-dasharray: 90, 150;
stroke-dashoffset: -124;
}
}

View File

@ -8,8 +8,7 @@ import { Component} from '@angular/core';
@Component({
selector: 'spiner',
templateUrl: './spiner.html',
styleUrls: ['./spiner.less'],
template: '<img height="50px" src="assets/images/load.svg"/>',
})
export class SpinerComponent {
}