ryanhefner / react-scroll-trigger

📜 React component that monitors scroll events to trigger callbacks when it enters, exits and progresses through the viewport. All callback include the progress and velocity of the scrolling, in the event you want to manipulate stuff based on those values.
https://www.pkgstats.com/pkg:react-scroll-trigger
MIT License
129 stars 17 forks source link

Request: scroll offset #146

Open ninjaasmoke opened 3 years ago

ninjaasmoke commented 3 years ago

How to trigger the onEnter after a certain offset? Thankyou!

lancesnider commented 1 year ago

Yeah, that'd be handy for things like determining when the element reaches the top of the screen.