Skip to content

Using react-scroll-parallax with GatsbyJS #65

Closed
@OPerel

Description

@OPerel

Hello and thanks for the package!

I'm trying to use the package in a Gtasby blog (v 2.1.2).
here is the repo.
It's not working when I try using <ParralaxProvider> in a layout component shared across multiple pages. I undrestand that the parallax element's position is calculated based on the scrolling position on the entry page, so it breaks when navigating between pages.
Any chance there's a simple workaround you know of? Maybe it can be added as a feature? Or it can't be solved easily?

Thanks a lot!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions