react-scrollnotify

2.0.1 • Public • Published

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>

Props

### onvisible ### animation

Feel free to report the issues in github.

Leave me a star if you think it’s cool!

View Demo

Package Sidebar

Install

npm i react-scrollnotify

Weekly Downloads

1

Version

2.0.1

License

MIT

Last publish

Collaborators

  • kanitsharma