#101 Add loading spinner

This commit is contained in:
Alan Grainger
2025-07-11 21:09:06 +02:00
parent fe3ad806ff
commit a7d7bf22b8
7 changed files with 43 additions and 8 deletions
+23
View File
@@ -68,3 +68,26 @@ html {
#download-all {
margin: auto 4px auto auto;
}
#loading-spinner {
text-align: center;
margin: 75px 0;
}
.loader {
width: 48px;
height: 48px;
border: 5px solid #888;
border-bottom-color: transparent;
border-radius: 50%;
display: inline-block;
box-sizing: border-box;
animation: rotation 1s linear infinite;
}
@keyframes rotation {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
}
+3
View File
@@ -68,6 +68,9 @@ class LGallery {
})
this.index += PER_PAGE
this.lightGallery.refresh()
} else {
// Remove the loading spinner once all items are loaded
document.getElementById('loading-spinner')?.remove()
}
}
}