-
May i know the differences of @react-three/drei ScrollControls and r3f-scroll-rig. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Hi @liho00 - thanks for the question. I think it's important to answer this question as you can achieve the same result but with a fundamental difference. With If you are building small website for a WebGL-only audience, this might be the simpler approach.
Part of your team could focus on layout for the pages and another creative team could work in parallal to sprinkle WebGL effects on top. Suggested reading: Progressive Enhancement with WebGL and React |
Beta Was this translation helpful? Give feedback.
-
Thanks for your explanations, appreciated. Im gonna start learning and building with it. Thank you. |
Beta Was this translation helpful? Give feedback.
Hi @liho00 - thanks for the question. I think it's important to answer this question as you can achieve the same result but with a fundamental difference.
With
ScrollControls
you use empty HTML divs to allow the page to scroll, and then design your layout completely with WebGL. There is no semantic HTML content for screenreaders to find or search engines to index. You can use something like https://github.com/pmndrs/react-three-a11y to add accessibility but it comes with a performance overhead.If you are building small website for a WebGL-only audience, this might be the simpler approach.
r3f-scroll-rig
on the other hand, is based on the principle of progressive enhancement. You can use …