refactor(AsyncButton): add loader
This commit is contained in:
27
packages/app/src/Element/AsyncButton.css
Normal file
27
packages/app/src/Element/AsyncButton.css
Normal file
@ -0,0 +1,27 @@
|
||||
button {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.spinner {
|
||||
position: absolute;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
top: 0;
|
||||
left: 0;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
animation-name: spin;
|
||||
animation-duration: 800ms;
|
||||
animation-iteration-count: infinite;
|
||||
animation-timing-function: linear;
|
||||
}
|
||||
|
||||
@keyframes spin {
|
||||
from {
|
||||
transform: rotate(0deg);
|
||||
}
|
||||
to {
|
||||
transform: rotate(360deg);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user