react-fade-opacity

2.0.0 • Public • Published

react-fade-opacity

React.js fade out/in opacity effect

npm

Install

$ npm install --save react-fade-opacity

Demo

Try it out !

Usage

import Fade from 'react-fade-opacity'
 
render() {
  <Fade>
    <button>Hello</button>
  </Fade>
}

API

Props

  static propTypes = {
    in: PropTypes.bool,
    interval: PropTypes.number,
    delay: PropTypes.number,
    children: PropTypes.node
  }
  static defaultProps = {
    in: false,
    interval: 50,
    delay: 6000
  }
Property Description
in Set true to fade the animation in
interval Animation fade duration in ms
delay Time before the animation will show in ms
onFadeComplete callback when animation completes

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 2.0.0
    51
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 2.0.0
    51
  • 1.0.3
    0
  • 1.0.2
    0
  • 1.0.1
    0
  • 1.0.0
    0

Package Sidebar

Install

npm i react-fade-opacity

Weekly Downloads

51

Version

2.0.0

License

MIT

Unpacked Size

15.5 kB

Total Files

5

Last publish

Collaborators

  • agamlarage