correction du bug de parallax dans les longs articles en scroll rapide
This commit is contained in:
parent
b1ec0d91c9
commit
b684fb8a5c
|
@ -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`;
|
||||
|
|
Loading…
Reference in New Issue