There is a library here called react-is-scrolling: https://www.npmjs.com/package/react-is-scrolling, however it seems to be outdated and I can't seem to get it to work. It does exactly what I need, I just need to detect if the user is scrolling or not. Ideally, it will detect them scrolling and change a certain image if they are scrolling. When using this library, I get this error:
Could not find module in path: 'react/lib/ReactComponentTreeHook' relative to '/node_modules/react-dom/15.6.2/lib/ReactDebugTool.js'
You can also check out my codesandbox here to get a closer look at it. Anything helps, thank you!