0.6.2 • Published 7 years ago

react-scroll-listen v0.6.2

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

react-scroll-listen

Install

$ npm install react-scroll-listen --save

Usage

import ScrollListener from 'react-scroll-listen'

render () {
  return (
    <ScrollListener
      onScroll={value => this.setState({scrollPosition: value})}
    />
  )
}

API / Props

ParamTypeargsdefaultrequired
onScrollFunctionvalue, eventtrue
containerrefwindowfalse
elementrefdocument.bodyfalse

Note: containerToListenOn and containerToScroll can be the same but don't have to be

MIT © Jack Hanford

0.6.2

7 years ago

0.6.1

7 years ago

0.6.0

7 years ago

0.5.1

7 years ago

0.5.0

7 years ago

0.4.0

7 years ago

0.3.2

7 years ago

0.3.1

7 years ago

0.3.0

7 years ago

0.2.0

7 years ago

0.1.0

7 years ago