react-simple-parallax
react-simple-parallax copied to clipboard
calcTranslation Error
Things work well on a page where the Parallax element is used and then when you change the state, there's an infinite number of these errors: Uncaught TypeError: Cannot read property 'style' of undefined at Object._calcTranslation (index.js:44)
Here's the simple implementation I'm using...
import React, {Component} from 'react'; import Parallax from 'react-simple-parallax';
export default class Home extends Component {
displayName: 'Home';
render () {
return (
<div className='home-wrap'>
<section className="parallax-image">
<Parallax className="parallax"
speedDivider="10">
</Parallax>
</section>`