How to update React component on scroll? #5602
Unanswered
Ingimohamed
asked this question in
Q&A
Replies: 1 comment
-
@Ingimohamed could you share some more details of what you are trying to achieve. I'll try to point you in the right direction. Is the intention that the progress bar is at 0% when at the top of the page, and 100% when scrolled to the bottom? |
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
-
In this example, I want the circular progress bar animates when scrolling down, and animate again when scrolling up.
I took the example from here -> https://www.kevinqi.com/react-circular-progressbar/
https://codesandbox.io/s/base-react-circular-progressbar-examples-forked-nofkj?file=/index.js:0-1867
I don't want to be repeating all the time just when scrolling only.
Edited by @smhutch — removed long code sample.
Beta Was this translation helpful? Give feedback.
All reactions