From 0ff1bd16b7c897fac8f3e110b5e4ae9eab99ddd2 Mon Sep 17 00:00:00 2001 From: FURK4NGG <105324908+FURK4NGG@users.noreply.github.com> Date: Sun, 6 Oct 2024 15:10:56 +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 353d280..02bf25f 100644 --- a/JAVASCRIPT/1.js +++ b/JAVASCRIPT/1.js @@ -39,7 +39,7 @@ document.addEventListener('scroll', () => { const windowHeight = window.innerHeight; const totalHeight = document.body.scrollHeight; - const scrollPercent = scrollPosition*4.6 / (totalHeight - windowHeight); + const scrollPercent = scrollPosition*4.7 / (totalHeight - windowHeight); words.forEach((word, index) => { const wordOffset = index / words.length;