react-gsap-parallax
try it out on codepen
ParallaxContainer
static propTypes = {
children: React.PropTypes.node.isRequired,
className: React.PropTypes.string,
id: React.PropTypes.string,
scrollDistance: React.PropTypes.number.isRequired,
scrolljack: React.PropTypes.bool,
style: React.PropTypes.object
}
static defaultProps = {
className: '',
scrolljack: false,
style: {}
}
Parallax
static propTypes = {
'data-parallax-id': React.PropTypes.number.isRequired,
children: React.PropTypes.node.isRequired,
className: React.PropTypes.string,
id: React.PropTypes.string,
keyframes: React.PropTypes.object.isRequired,
style: React.PropTypes.object,
}
static defaultProps = {
className: '',
id: '',
style: {}
}