A lightweight react wrapper that detects when your component enters the viewport, fires a function passed as prop and add animations to it!
-
yarn add react-scrollnotify
or
-
npm install react-scrollnotify --save
or
-
Include
dist-modules/index.js
import { Notify } from 'react-scrollnotify';
.
.
.
<Notify onvisible={yourFunction()} animation='youranimationclass'>
...
</Notify>