V
V
Viktor2019-11-15 15:11:48
React
Viktor, 2019-11-15 15:11:48

What is the best module to use for scrolling in React.js?

Hello. It is necessary to make the following functionality:
5dce957249428695357517.png
That is, when you click on the circle, it smoothly scrolls to the desired section, the circle becomes active.
When scrolling through sections, the circles also become active depending on the section.
I used react-scroll but it is buggy on retina screens.
I saw similar but active links are not implemented there.
Maybe someone knows a good module for this?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
C
camelCaseVlad, 2019-11-15
@camelCaseVlad

Use fullpage.js - https://alvarotrigo.com/fullPage/#page1
React wrapper:
https://github.com/alvarotrigo/react-fullpage
Here is an example:
https://codesandbox.io/s/wizardly-cache- 39c9x

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question