feat: stars appears faster

This commit is contained in:
Pihkaal
2024-10-17 23:18:58 +02:00
parent 6101db8b4f
commit 2c3e23c51c

View File

@@ -18,7 +18,7 @@ const createStar = (container: HTMLElement) => {
star.style.width = size;
star.style.height = size;
star.style.animationDuration = `${random(MIN_SPARKLE, MAX_SPARKLE)}s`;
star.style.animationDelay = `${random(0, MAX_SPARKLE)}s`;
star.style.animationDelay = `${random(0, MAX_SPARKLE * 200)}ms`;
container.appendChild(star);
};