React component to animate elements on scroll with animate.css
npm install react-scroll-effects
npm install react-scroll-effects --save
Include "animate.css" from https://daneden.github.io/animate.css/Usage:
`
import ScrollEffect from 'react-scroll-effects';
test 1
text
text
text
text
text
text
test
test
test
`
##Properties:
offset - By default, animation is activated when (scrollPositionY + window.height / 2) >= (elementPositionTop). But you can specify offset.
className - Your class for block. You can specify one or multiple classes separated by a space.
duration - Animate duration seconds.
queueClass - Class name for queue. See the demo page (third block).
queueDuration - Queue interval.
callback - Callback function.Files:
src/** - component
demo/** - demo page. For build: "bower install && npm install"Build demo page
`
$ npm install
$ gulp
``