0.0.8 • Published 6 years ago

react-inview v0.0.8

Weekly downloads
76
License
MIT
Repository
github
Last release
6 years ago

Why react-inview?

Use the React Inview component to figure out when a DOM element is in user's view. It will call a Function passed to the onInview property. As it turns out, it's specific for DOM (shouldn't work for react-native). It requires two dependencies, jquery and jquery-inview plugin.

Demo

The React Inview component can be used for creating an infinite scroll layout.

infinite scroll

See the example for more details.

Usage

Install it using npm.

npm install --save react-inview

Simple usage example.

<Inview onInview={this.handleInview}>
  <span>I'm in your view</span>
</Inview>

Properties (props)

onInview A Function that is triggered when the children element is in view.

License

MIT © Rafael Xavier de Souza

0.0.8

6 years ago

0.0.7

6 years ago

0.0.6

8 years ago

0.0.5

8 years ago

0.0.4

9 years ago

0.0.3

9 years ago

0.0.2

9 years ago

0.0.1

9 years ago