Replies: 4 comments
-
can someone provide a example that you can use the ref for a element such as div and useScroll to observe the div? |
Beta Was this translation helpful? Give feedback.
-
It looks like the ref can't get when the useScroll is running. The key issue is forwardRef in Parallax Component. |
Beta Was this translation helpful? Give feedback.
-
I find the every hook that you should pass it's ref can't be used with the Parallax Component? |
Beta Was this translation helpful? Give feedback.
-
I have the same problem. It doesn't return scrollYProgress value. |
Beta Was this translation helpful? Give feedback.
-
Which react-spring target are you using?
@react-spring/web
@react-spring/three
@react-spring/native
@react-spring/konva
@react-spring/zdog
What version of react-spring are you using?
@react-spring/web 9.7.4
What's Wrong?
I try to use the hook useScroll with the Parallax,but it doesn't work.
To Reproduce
as the code I paste
Expected Behaviour
useScroll can listen to the Parallax and the background color will change
Link to repo
just this code
Beta Was this translation helpful? Give feedback.
All reactions