correction du bug de parallax dans les longs articles en scroll rapide

This commit is contained in:
Valentin 2024-01-09 11:00:21 +01:00
parent b1ec0d91c9
commit b684fb8a5c
1 changed files with 1 additions and 1 deletions

View File

@ -240,7 +240,7 @@
function moveElementsOnScroll() {
if (currentPage === 'fullpage') {
ornements.topOver.el.style.left = `${ornements.topOver.values.left * (window.innerWidth / 100) - window.scrollY / 4}px`;
ornements.topOver.el.style.top = `${ornements.topOver.values.top * (window.innerHeight / 100) + window.scrollY / 1.1}px`;
ornements.topOver.el.style.top = `${ornements.topOver.values.top * (window.innerHeight / 100) + window.scrollY / 5}px`;
ornements.topUnderFirst.el.style.left = `${ornements.topUnderFirst.values.left * (window.innerWidth / 100) - window.scrollY / 5}px`;
ornements.topUnderFirst.el.style.top = `${ornements.topUnderFirst.values.top * (window.innerHeight / 100) + window.scrollY / 1.3}px`;