]> BookStack Code Mirror - bookstack/commitdiff
Fixed loading animation delay
authorDan Brown <redacted>
Sat, 14 May 2022 12:31:24 +0000 (13:31 +0100)
committerDan Brown <redacted>
Sat, 14 May 2022 12:31:24 +0000 (13:31 +0100)
Loading animation would show in an unready state due to animation-delay
on components. Updated to a negative delay to ensure elements were in
correct positions right away upon show.

resources/sass/styles.scss

index 582bf7c7569a7faa4a55b7fc1d159e31cd490db6..cd5ab655771ded834a60c90c8c246bbe8b1cbcfa 100644 (file)
@@ -79,17 +79,17 @@ $loadingSize: 10px;
     animation-timing-function: cubic-bezier(.62, .28, .23, .99);
     margin-inline-end: 4px;
     background-color: var(--color-page);
-    animation-delay: 0.3s;
+    animation-delay: -300ms;
   }
   > div:first-child {
       left: -($loadingSize+$-xs);
       background-color: var(--color-book);
-      animation-delay: 0s;
+      animation-delay: -600ms;
   }
   > div:last-of-type {
     left: $loadingSize+$-xs;
     background-color: var(--color-chapter);
-    animation-delay: 0.6s;
+    animation-delay: 0ms;
   }
   > span {
     margin-inline-start: $-s;