Fix animation delay calculation for symbols in resurrection feature

This commit is contained in:
CodeDevMLH
2026-02-24 19:23:54 +01:00
parent fa658c0057
commit 8f0c2ac7df

View File

@@ -57,7 +57,7 @@ function createSymbol(imageSrc, leftPercent, delaySeconds) {
img.alt = '';
symbol.style.left = `${leftPercent}%`;
symbol.style.animationDelay = `${delaySeconds}s, ${Math.random() * 3}s`;
symbol.style.animationDelay = `${delaySeconds}s, -${Math.random() * 3}s`;
if (enableDifferentDuration) {
const fallDuration = Math.random() * 7 + 7;