scroll-anim
scroll-anim copied to clipboard
Parallax: playScale lookup on scroll
Could you please provide a way to show the current playScale position on a scroll in order to set values correctly for Parallax?
Right now those, no not match with the vertical height percentage and I am struggling to determine why that is.
Ideally, something that would work with onUpdate().
instead of onUpdate: (e) => console.log(">>> animation percentage " + e),
onUpdate: (e) => console.log(">>> animation percentage " + e.percentage)
onUpdate: (e) => console.log(">>> animation playScale " + e.playScale)
onUpdate: (e) => console.log(">>> animation offsetTop " + e. offsetTop)
Or something thereof.
Thank you.