visibl
In-viewport detection via React HOC.
Usage
const Component = React const TrackedComponent = { return <TrackedComponent /> }
Adjusting Threshold
A fraction of the viewport height. Positive values makes image load sooner, negative values makes image load later.
<TrackedComponent threshold={0.2} />
License
MIT License © Eric Bailey