A lightweight scroll sensor to solve your react scroll into viewport issues.
TLDR; An unopinionated sensor to detect when your component gets into the viewport and injects the intersection info into your component.
If you ever have tried to implement the support necessary to detect when your components get into the viewport when scrolling, you know how much it hurts. That's the exact reason this library is here. Whether you want to use scroll event-based tracking or intersection observer-based tracking, it's already packed into this sensor.
yarn add react-scrollsense
or
npm save react-scrollsense
You can access the documentation from here.
We need more maintainers and contributors for the library. Please click here for the internals.
Writers are welcome for the documentation. Fork and create a pull request.
Copyright (c) 2022 XPD Kasun Jayawardena.
Licensed under The MIT License (MIT).
- Find it useful? give it a star :)
- Problems? Add your problem in Issues. I will try to accommodate as much as I am allowed.