From f743c803d44d76858a3ff15c0868449ab257403f Mon Sep 17 00:00:00 2001 From: FURK4NGG <105324908+FURK4NGG@users.noreply.github.com> Date: Thu, 3 Oct 2024 20:22:52 +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 0be6fee..86b9b3d 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 / (totalHeight - windowHeight); + const scrollPercent = scrollPosition*3.5 / (totalHeight - windowHeight); words.forEach((word, index) => { const wordOffset = index / words.length;