Code Monkey home page Code Monkey logo

Comments (3)

jscottsmith avatar jscottsmith commented on May 28, 2024

@ChCosmin Which props are you having trouble understanding? Maybe a better demo allowing to change all the props and see the effects would help? There's this demo of course which hopefully you've looked at, but it could be improved.

from react-scroll-parallax.

ChCosmin avatar ChCosmin commented on May 28, 2024

I had trouble understanding how the offsetYMin, offsetYMax worked, i tried a lot of combinations and variables in them but i couldn't make it look or behave like i wished (not sure if the structure of my html was a problem or not) but yeah. as well as the slowerscroll prop DID make it slower but not as slow as i needed so having the ability to put a speed variable on it would've helped, unless you can influence the speed/ammount of parallaxing the elemnt does with a good combination of offsets but i didn't manage to understand that

from react-scroll-parallax.

jscottsmith avatar jscottsmith commented on May 28, 2024

@ChCosmin well if you are still having trouble I can take a look at your code. Sounds like it may be an issue with the setup. Basically the larger the offsets, the more pronounced the effect. The slowerScrollRate prop effectively just flips these offsets internally so that it will appear that the element it moving slower than the default rate of scroll.

As for a scroll rate/speed prop, I'm not so sure. It's a nice idea but doesn't fit so well with how this package was built.

Going to close this but if you need some help just send me a repo or code example and I'll have a look.

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.