Refactor animation delays in seasonal effects for improved performance and consistency [skip ci]
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user