UI: Fancier load animations

This commit is contained in:
Daniel
2023-10-15 01:48:58 +02:00
parent 12c2e7a79c
commit dcc5632cd1
11 changed files with 121 additions and 84 deletions
+4
View File
@@ -17,6 +17,10 @@ export default class Main {
this.backgrounds = document.getElementById("background")
for (let i = 0; i < 2; i++) {
let img = document.createElement("img")
img.classList.add("notloaded")
img.addEventListener("load", () => {
img.classList.remove("notloaded")
})
this.backgrounds.appendChild(img)
}