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

@@ -72,6 +72,8 @@ function initHalloween(count) {
const randomLeft = Math.random() * 100; // position (0% to 100%)
const randomAnimationDelay = Math.random() * 10; // delay (0s to 10s)
// Display directly symbols on full screen (below) or let it build up (above)
// const randomAnimationDelay = -(Math.random() * 10); // delay (-10s to 0s)
const randomAnimationDelay2 = -(Math.random() * 3); // delay (-3s to 0s)
// apply styles