1.0.13 • Published 7 years ago

react-scroll-effects v1.0.13

Weekly downloads
12
License
ISC
Repository
github
Last release
7 years ago

React Effects Scroll

React component to animate elements on scroll with animate.css IMPORTANT: This package created about 2 years ago when i first started learing React. I want to rewrite all, but not have the time. I have now accepted the last PR for react 15 version, but codestyle still bad.

Demo page:

http://anorudes.github.io/React-Scroll-Effect/

Install

npm install react-scroll-effects --save Include "animate.css" from https://daneden.github.io/animate.css/

Usage:

import ScrollEffect from 'react-scroll-effects';

<ScrollEffect animate="fadeInUp">
  test 1
</ScrollEffect>

<ScrollEffect animate="fadeInUp">
  <div className="test">
    <span>text</span>
    <span>text</span>
    <span>text</span>
  </div>
</ScrollEffect>

<ScrollEffect className="element otherClass" animate="slideInRight" offset="-500" duration="2" callback={this.callbackAnimate.bind(this)}>
  <div className="test">
    <span>text</span>
    <span>text</span>
    <span>text</span>
  </div>
</ScrollEffect>

<ScrollEffect animate="zoomInUp" queueClass="queue" duration="2" queueDuration=".5">
  <ul>
    <li className="queue">
      test
    </li>
    <li className="queue">
      test
    </li>
    <li className="queue">
      test
    </li>
  </ul>
</ScrollEffect>

##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

Depending

https://daneden.github.io/animate.css/

1.0.13

7 years ago

1.0.12

7 years ago

1.0.11

7 years ago

1.0.10

7 years ago

1.0.9

9 years ago

1.0.8

9 years ago

1.0.7

9 years ago

1.0.6

9 years ago

1.0.5

9 years ago

1.0.4

9 years ago

1.0.3

9 years ago

1.0.21

9 years ago

1.0.2

9 years ago

1.0.1

9 years ago

1.0.0

9 years ago