Spaces:
Running
Running
Update index.html
Browse files- index.html +1 -1
index.html
CHANGED
@@ -20,7 +20,7 @@
|
|
20 |
|
21 |
// Function to get the correct image number based on scroll position
|
22 |
function getImageForScroll(scrollPos) {
|
23 |
-
let imageIndex = Math.floor(scrollPos /
|
24 |
return imageIndex < numImages ? String(imageIndex + 1).padStart(4, '0') : String(numImages).padStart(4, '0');
|
25 |
}
|
26 |
|
|
|
20 |
|
21 |
// Function to get the correct image number based on scroll position
|
22 |
function getImageForScroll(scrollPos) {
|
23 |
+
let imageIndex = Math.floor(scrollPos / 50); // Change every 50 pixels
|
24 |
return imageIndex < numImages ? String(imageIndex + 1).padStart(4, '0') : String(numImages).padStart(4, '0');
|
25 |
}
|
26 |
|