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

@@ -91,6 +91,8 @@ function initLeaves(count) {
// set random horizontal position, animation delay and size(uncomment lines to enable)
const randomLeft = Math.random() * 100; // position (0% to 100%)
const randomAnimationDelay = Math.random() * 12; // delay for fall (0s to 12s)
// Display directly symbols on full screen (below) or let it build up (above)
// const randomAnimationDelay = -(Math.random() * 16); // delay for fall (-16s to 0s)
const randomAnimationDelay2 = -(Math.random() * 4); // delay for shake+rotate (-4s to 0s)
// apply styles