How to trigger animations in a React app based on the scroll position

Viewed 4377

Let's say I need to add an element to the navbar when the user have scrolled past the header of the site. How can I do something like this in React without using jQuery?

1 Answers
Related