Skip to content

[Q&A] What is the differences between ScrollControls vs r3f-scroll-rig #29

Answered by ffdead
liho00 asked this question in Q&A
Discussion options

You must be logged in to vote

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 …

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by ffdead
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
question Further information is requested
2 participants
Converted from issue

This discussion was converted from issue #23 on October 11, 2023 07:53.