From 720ca213d38fc062d6d3ef64ffc37a8a4b6ab6ec Mon Sep 17 00:00:00 2001 From: Violet Date: Mon, 4 Mar 2024 17:27:19 +0000 Subject: [PATCH] Fix Flashing Rain Particles in top left --- weatherGenerator.js | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/weatherGenerator.js b/weatherGenerator.js index 55e2340..68f6ea9 100644 --- a/weatherGenerator.js +++ b/weatherGenerator.js @@ -21,9 +21,9 @@ module.exports = { .rainContainer { height: 100vh; - width: 100vw; + width: 80vw; top: 0px; - left: 0px; + left: 10vw; position: absolute; overflow: hidden; } @@ -75,13 +75,13 @@ module.exports = { html += ` ${index * iterationReducer}0% { top: 110vh; - right: ${randos[index]}vw; + right: ${randos[index]}%; visibility: hidden; } ${index * iterationReducer}0.1% { top: -10vh; - right: ${randos[index + 1]}vw; + right: ${randos[index + 1]}%; visibility: hidden; } ${index * iterationReducer}0.2% { @@ -90,8 +90,11 @@ module.exports = { ` } // console.log(html) + + html += `90.3% { visibility: hidden; }` html += `}` + console.log(html) } html += ""