Problem triggering objects in horizontal parallax in GSAP Posted October 29, 2021 @akapowl I'm having the same issue. I'm trying to use a %, but that is not consistent. I am new to GreenSock and have limited scripting knowledge. Can you help me figure out the calculation for the start and end on this? See the Pen OJjjjQW by noleeo (@noleeo) on CodePen I tried this start, but it is not working... start: () => 'top top-=' + (sct.offsetLeft - window.innerWidth/2) * (document.querySelector(".horizontal-slideshow3").offsetWidth/(sct.offsetWidth * (sections3.length - 1))), Any help you can give would be appreciated.
Problem triggering objects in horizontal parallax
in GSAP
Posted
@akapowl I'm having the same issue. I'm trying to use a %, but that is not consistent. I am new to GreenSock and have limited scripting knowledge.
Can you help me figure out the calculation for the start and end on this?
See the Pen OJjjjQW by noleeo (@noleeo) on CodePen
I tried this start, but it is not working...
start: () => 'top top-=' + (sct.offsetLeft - window.innerWidth/2) * (document.querySelector(".horizontal-slideshow3").offsetWidth/(sct.offsetWidth * (sections3.length - 1))),
Any help you can give would be appreciated.