react-simple-parallax icon indicating copy to clipboard operation
react-simple-parallax copied to clipboard

calcTranslation Error

Open I3rendan opened this issue 7 years ago • 0 comments

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>`

I3rendan avatar Apr 12 '17 18:04 I3rendan