Refactor animation delays in seasonal effects for improved performance and consistency [skip ci]

This commit is contained in:
CodeDevMLH
2026-02-28 01:29:49 +01:00
parent 494e475f42
commit d5df90a6ae
8 changed files with 96 additions and 259 deletions

View File

@@ -82,7 +82,7 @@ function addSymbols(count) {
for (let i = 0; i < count; i++) {
const imageSrc = images[Math.floor(Math.random() * images.length)];
const left = Math.random() * 100;
const delay = Math.random() * 12;
const delay = -(Math.random() * 12);
container.appendChild(createSymbol(imageSrc, left, delay));
}
}
@@ -99,7 +99,7 @@ function initResurrection(count) {
// Place one of each of the 8 provided resurrection images first.
images.forEach((imageSrc, index) => {
const left = (index + 1) * (100 / (images.length + 1));
const delay = Math.random() * 8;
const delay = -(Math.random() * 8);
container.appendChild(createSymbol(imageSrc, left, delay));
});