Skip to content

Parallax Not working on Initial Loading #48

@ladumorrajani

Description

@ladumorrajani

Hello @jscottsmith , Thanks for this good library

Parallax is not working on initial loading when i resize window then parallax was working properly I don't know why this issue was coming..

Also i have add ParallaxProvider in my App.js

import React, { Component } from 'react'
import { Parallax } from 'react-scroll-parallax'

class TestComponent extends Component {
  render() {
    return (
      <Parallax className="custom-class" y={[-20, 20]} tagOuter="figure">
        <Image src="/image.jpg" />
      </Parallax>
    )
  }
}

export default TestComponent

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions