0.1.10 • Published 7 years ago

onscreen-effects v0.1.10

Weekly downloads
2
License
MIT
Repository
github
Last release
7 years ago

Onscreen Effects

Onscreen effects is a component wrapper for React. Onscreen Effects

This library is the child of two awesome libraries onScreen and Velocity.

Installation

Using npm:

$ npm i --save onscreen-effects

Usage

Once installed you import each effect wrapper individually. Types of effects:

  • FadeIn
  • ShrinkIn
  • ExpandIn
  • SlideDown
  • SlideLeft
  • SlideRight
  • SlideUp
import { FadeIn, SlideDown } from 'onscreen-effects'

class extends Component {
  render() {
    <FadeIn duration={1000} delay={250}>
      ...
    </FadeIn>
  }
}

Options (props)

runMoreThanOnce

Allow the component to re-run the animation everytime it enters the viewport. Default: false

duration

The duration of the animation. Default: 400ms

delay

The delay before the animation occurs. Default: 0ms

0.1.10

7 years ago

0.1.9

7 years ago

0.1.8

7 years ago

0.1.7

7 years ago

0.1.6

7 years ago

0.1.5

8 years ago

0.1.4

8 years ago

0.1.3

8 years ago

0.1.2

8 years ago

0.1.1

8 years ago

0.1.0

8 years ago