Skip to content

Commit

Permalink
changed something
Browse files Browse the repository at this point in the history
  • Loading branch information
braydenNP committed Jun 20, 2024
1 parent 2b9e5a6 commit 2e6b11c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion script.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ window.onmousemove = e => {

for (const info of track.getElementsByClassName("info")) {
const index = info.dataset.index;
if (index * (-100 / img_count) >= nextPercentage && nextPercentage > (index + 1) * (-100 / img_count)) {
if (index * (-100 / (img_count-2)) >= nextPercentage && nextPercentage > (index + 1) * (-100 / (img_count-2))) {
info.animate({
transform: `translate(0%,0%)`,
opacity: 100
Expand Down

0 comments on commit 2e6b11c

Please sign in to comment.