mirror of
https://github.com/eitchtee/WYGIWYH.git
synced 2026-07-06 21:05:15 +02:00
feat(style): add delay to htmx indicator
This commit is contained in:
@@ -11,7 +11,6 @@ from apps.net_worth.utils.calculate_net_worth import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
# Create your views here.
|
|
||||||
def net_worth_main(request):
|
def net_worth_main(request):
|
||||||
currency_net_worth = calculate_currency_net_worth()
|
currency_net_worth = calculate_currency_net_worth()
|
||||||
account_net_worth = calculate_account_net_worth()
|
account_net_worth = calculate_account_net_worth()
|
||||||
|
|||||||
@@ -97,6 +97,11 @@
|
|||||||
100% { transform: rotate(360deg); }
|
100% { transform: rotate(360deg); }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@keyframes fadeIn {
|
||||||
|
0% { opacity: 0; }
|
||||||
|
100% { opacity: 1; }
|
||||||
|
}
|
||||||
|
|
||||||
.show-loading.htmx-request {
|
.show-loading.htmx-request {
|
||||||
position: relative;
|
position: relative;
|
||||||
top: 0;
|
top: 0;
|
||||||
@@ -110,6 +115,9 @@
|
|||||||
bottom: 0;
|
bottom: 0;
|
||||||
backdrop-filter: blur(4px);
|
backdrop-filter: blur(4px);
|
||||||
z-index: 100;
|
z-index: 100;
|
||||||
|
animation: fadeIn 0.1s ease-in forwards;
|
||||||
|
animation-delay: 200ms;
|
||||||
|
opacity: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
&::after {
|
&::after {
|
||||||
@@ -122,7 +130,9 @@
|
|||||||
border: 4px solid #f3f3f3;
|
border: 4px solid #f3f3f3;
|
||||||
border-top: 4px solid $primary;
|
border-top: 4px solid $primary;
|
||||||
border-radius: 50%;
|
border-radius: 50%;
|
||||||
animation: spin 1s linear infinite;
|
animation: spin 1s linear infinite, fadeIn 0.1s ease-in forwards;
|
||||||
|
animation-delay: 200ms;
|
||||||
|
opacity: 0;
|
||||||
z-index: 101;
|
z-index: 101;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user