forked from rDrama/rDrama
1
0
Fork 0

consistent padding

master
Aevann 2023-06-26 13:20:17 +03:00
parent 9f7fbbff99
commit 1fb6092b24
1 changed files with 30 additions and 30 deletions

View File

@ -2,9 +2,9 @@ const fireworks = document.getElementsByClassName("firework")
let counter = 0 let counter = 0
for (let firework of fireworks){ for (let firework of fireworks){
const timeout = 2000 * counter const timeout = 2000 * counter
counter++ counter++
setTimeout(() => { setTimeout(() => {
setInterval(() => { setInterval(() => {
firework.firstElementChild.src = "/i/firework-trail.webp" firework.firstElementChild.src = "/i/firework-trail.webp"
@ -34,5 +34,5 @@ setTimeout(() => {
} }
} }
}, 5000) }, 5000)
}, timeout) }, timeout)
} }