Skip to content

Animate position of multiple components #1930

Discussion options

You must be logged in to vote

If the onWheel event is attached to the window then you could write a custom hook to handle this. Else you could use global state to store the wheel event value. That's how I would begin to approach the issue, without seeing any code, that's the best I can think of right now.

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@StephenDRoberts
Comment options

@drcmda
Comment options

@joshuaellis
Comment options

@drcmda
Comment options

Answer selected by StephenDRoberts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants