Update 1.js
This commit is contained in:
+1
-1
@@ -39,7 +39,7 @@ document.addEventListener('scroll', () => {
|
|||||||
const windowHeight = window.innerHeight;
|
const windowHeight = window.innerHeight;
|
||||||
const totalHeight = document.body.scrollHeight;
|
const totalHeight = document.body.scrollHeight;
|
||||||
|
|
||||||
const scrollPercent = scrollPosition*4.6 / (totalHeight - windowHeight);
|
const scrollPercent = scrollPosition*4.7 / (totalHeight - windowHeight);
|
||||||
|
|
||||||
words.forEach((word, index) => {
|
words.forEach((word, index) => {
|
||||||
const wordOffset = index / words.length;
|
const wordOffset = index / words.length;
|
||||||
|
|||||||
Reference in New Issue
Block a user