slight updates
All checks were successful
Swaous.Asuscomm Build / Build-Docker-Image (push) Successful in 35s

This commit is contained in:
Lazy Hippopotamus
2025-02-24 16:46:32 -05:00
parent 9a2c1c3fca
commit 099bfceb7e
97 changed files with 13112 additions and 43 deletions

17
site/wintryscene/main.js Executable file
View File

@@ -0,0 +1,17 @@
const flakeImages = ["snowflake.svg", "snowflake2.svg"];
function snow() {
let flake = document.createElement("img");
flake.src = flakeImages[Math.floor(Math.random() * flakeImages.length)];
document.getElementById("snow").appendChild(flake);
let temps = Math.random() * 2500 + 2500;
flake.style.animationDuration = temps / 1000 + "s";
flake.style.transform = "scale(" + (Math.random() * 0.5 + 0.6) + ")";
flake.style.left = Math.random() * 100 + "vw";
setTimeout(() => {
flake.parentNode.removeChild(flake);
}, temps);
setTimeout(snow, 500 * Math.random());
}
snow();