Replies: 1 comment
-
hey @Achi00 you can use useScroll from drei to get a offset. With the offset you can write a function that creates new colors, and put that on your canvas background or css background for the body. Here is a sandbox from drei where they use an useFrame and take the useScroll offset from it. hopefully this helps |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
hi, is it possible to change canvas bg color with scroll? I tryed it with react only but bcz my scroll is with drei scroll controls it seems not to working, any solution? thanks
Beta Was this translation helpful? Give feedback.
All reactions