Home

Awesome

react-scroll-components

A set of components and mixins that react to page scrolling

ScrollListenerMixin

This mixin provides the following states:

You can pass the following methods to your React class:

ScrollBlocker

A very simple component that allows you to block any mouse events during scrolling.

Example

var MyComponent = React.createClass({
	mixins: [ScrollListenerMixin],
	render: function () {
		return (
			<ScrollBlocker active={this.state.isScrolling}>
				The current scroll position is {this.state.scrollTop}.<br />
				The document is currently {this.state.isScrolling ? '' : 'not'} scrolling.
			</ScrollBlocker>
		)
	}
})