Skip to content

Commit

Permalink
Update scroll.js
Browse files Browse the repository at this point in the history
threshold - .6 >>> .4
  • Loading branch information
l1usteven authored Mar 9, 2024
1 parent 8964873 commit 14778bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/scroll.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ document.addEventListener("DOMContentLoaded", function () {
entry.target.classList.remove('show');
}
});
}, { threshold: 0.6 });
}, { threshold: 0.4 });

const hiddenElements = document.querySelectorAll('.hidden');
hiddenElements.forEach((el) => observer.observe(el));
Expand Down

0 comments on commit 14778bc

Please sign in to comment.