scroll-anim icon indicating copy to clipboard operation
scroll-anim copied to clipboard

Parallax: playScale lookup on scroll

Open julesmoretti opened this issue 5 years ago • 0 comments

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.

julesmoretti avatar Apr 28 '20 17:04 julesmoretti