Skip to content

Trigger function start only when scrolling down? #581

Answered by thebuilder
jackytam2020 asked this question in Q&A
Discussion options

You must be logged in to vote

You'd want to combine this with another hook that tracks scroll direction (e.g. a useEffect that monitors scroll), and see what the last scroll direction was when the inView changes.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by jackytam2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants