I am trying to create a scrolling box with parallax
but for some reasons it won't bound with Canvas
element, even if I will include both under the same <div>
.
In this screenshot, you can see div1 and div2 where each has its own scroll feature...
And even under the same div, still can't get rid of the double scroll. Any ideas?
Or react-spring
parallax isn't compatible with react-three-fiber
and that's why there is a library react-three-flex
?
Here is the codesandBox
You could move the canvas into the Parallax container as a new ParallaxLayer
like so – https://codesandbox.io/s/sad-dewdney-r0c0u?file=/components/Parallax.js