From 31be30f6354869b3f3f0ed94311329670ce90a78 Mon Sep 17 00:00:00 2001 From: FURK4NGG <105324908+FURK4NGG@users.noreply.github.com> Date: Thu, 3 Oct 2024 20:36:29 +0300 Subject: [PATCH] Update 1.js --- JAVASCRIPT/1.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/JAVASCRIPT/1.js b/JAVASCRIPT/1.js index 88a2f68..4f4d4cb 100644 --- a/JAVASCRIPT/1.js +++ b/JAVASCRIPT/1.js @@ -21,7 +21,7 @@ document.addEventListener('scroll', () => { const windowHeight = window.innerHeight; const totalHeight = document.body.scrollHeight; - const scrollPercent = scrollPosition*4.7 / (totalHeight - windowHeight); + const scrollPercent = scrollPosition*4.6 / (totalHeight - windowHeight); words.forEach((word, index) => { const wordOffset = index / words.length;