react-scrollnotify
v2.0.1
Published
Viewport notifier for react
Downloads
33
Readme
React Scroll Notify
A lightweight react wrapper that detects when your component enters the viewport, fires a function passed as prop and add animations to it!
Now you can animate components by passing your animation class or animate.css classes as prop
Installation
yarn add react-scrollnotify
or
npm install react-scrollnotify --save
or
Include
dist-modules/index.js
Usage
import { Notify } from 'react-scrollnotify';
.
.
.
<Notify onvisible={yourFunction()} animation='youranimationclass'>
...
</Notify>