This PR implements the onScroll prop to give users access to scrollTop (the number of pixels scrolled while the parallax effect is active) and updates onProgress to only use one value -- a float between 0 and 1 that represents the scroll progress of the Parallax container.
This PR implements the
onScroll
prop to give users access toscrollTop
(the number of pixels scrolled while the parallax effect is active) and updatesonProgress
to only use one value -- a float between0
and1
that represents the scroll progress of theParallax
container.