Code Monkey home page Code Monkey logo

Comments (6)

scoutrul avatar scoutrul commented on May 28, 2024 1

Now I got it, thank you!

from react-scroll-parallax.

jscottsmith avatar jscottsmith commented on May 28, 2024

@scoutrul Can you provide a link for me to see the problem -- or share the source code with me? Otherwise I won't be able to help you debug the issue.

from react-scroll-parallax.

scoutrul avatar scoutrul commented on May 28, 2024

Did gave access to you https://github.com/scoutrul/firegg/blob/master/src/components/blocks/IndexHero.js

from react-scroll-parallax.

jscottsmith avatar jscottsmith commented on May 28, 2024

Thanks for that.

ParallaxProvider should be around your app. Remove the <ParallaxProvider> from <IndexHero> and add it to your App.js. Also ParallaxController.init() is no longer necessary. Example:

// ParallaxController.init()
// no need for this with the latest version. 
// it's now handled by the provider

const App = props => {
  const siteMenu = props.menuItems;
  const socialMenu = props.socialItems;
  return (
    <div id="app" style={styles}>
      <Helmet title="Guardsman Limited®" />
      <ParallaxProvider>
        <Wrapper MenuItems={siteMenu}>
          <Header MenuItems={siteMenu} />
          <Routes />
          <Footer MenuItems={siteMenu} SocialItems={socialMenu} />
        </Wrapper>
      </ParallaxProvider>
    </div>
  );
};

I'll clarify in the docs that the <ParallaxProvider> should be around your app -- or other components that are not unmounted during route changes.

Closing but if you continue to have issues just post here.

from react-scroll-parallax.

Brundeco avatar Brundeco commented on May 28, 2024

Hello! Thanks voor the plugin!
Just experiencing a weird issue.
Yesterday I managed to get the effect working properly, today the parallax effect doesn't do much anymore. I didn't change the code.
Has someone also experienced this?

This is my code

Thanks in advance!

(just tried wrapping the around my but also no result. And the code snippet below worked perfectly yesterday)

<React.Fragment>
        <ParallaxProvider>
          <Parallax className="custom-class" y={[-40, 40]} tagOuter="figure">
            <HeaderFullscreen />
          </Parallax>
          <GridWrapper style="main-page-wrapper">
            <GeneralNav />
            <BlankDiv style="blank-div-md" />
            <Title
              style="section-title"
              text="Wat je kan verwachten van onze gdm opleidingen"
            />
            <Paragraph
              text="testen"
              style="standard-text-paragraph par-pos-1 paragraph-mb-med"
            />
            <Quote
              text=" opleidingsdirecteur"
              style="primary-quote quote-pos-1"
            />
            <Paragraph style="paragraph-bottomline par-pos-1" />
            <PrimaryButton text="Bekijk onze richtingen" />
            <BlankDiv style="blank-div-md" />
            <div className="row-space-between">
              <Title style="section-title" text="Work" />
            </div>
            <div className="row-space-between">
              <Featured style="featured-bg-image" />
              <Featured style="featured-bg-image" />
            </div>
            <BlankDiv style="blank-div-lg" />
            <Footer />
          </GridWrapper>
        </ParallaxProvider>
      </React.Fragment>

from react-scroll-parallax.

jscottsmith avatar jscottsmith commented on May 28, 2024

@gdm-1718-brundeco impossible to say without a link to your site or a git repo. This issue is unrelated and old -- open a new issue if you need some support and I can help.

from react-scroll-parallax.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.