mirror of
https://github.com/avatao-content/frontend-tutorial-framework
synced 2025-01-16 03:11:56 +00:00
Add spinning reload animation for Satan's grace
This commit is contained in:
parent
52298cbd8c
commit
277d253fbf
@ -27,4 +27,4 @@
|
||||
[class.disabled]="saveButtonState === 'SAVING'"
|
||||
><span *ngIf="saveButtonState === 'DIRTY'">Save!</span>
|
||||
<span *ngIf="saveButtonState === 'SAVED'">Done!</span>
|
||||
<span *ngIf="saveButtonState === 'SAVING'">Reloading...</span></button>
|
||||
<span *ngIf="saveButtonState === 'SAVING'"><div class="loader"></div>Reloading...</span></button>
|
||||
|
@ -7,3 +7,21 @@
|
||||
.btn-secondary {
|
||||
border-radius: 0;
|
||||
}
|
||||
|
||||
.loader {
|
||||
border: 2px solid #ffffff;
|
||||
border-radius: 50%;
|
||||
border-top: 2px solid #212529;
|
||||
width: 15px;
|
||||
height: 15px;
|
||||
animation: spin 2s linear infinite;
|
||||
display: inline-block;
|
||||
margin-right: 5px;
|
||||
position: relative;
|
||||
top: 2px;
|
||||
}
|
||||
|
||||
@keyframes spin {
|
||||
0% { transform: rotate(0deg); }
|
||||
100% { transform: rotate(360deg); }
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user