breadadams / scroller-motion

🛹 Elegant motion scrolling for React

Home Page:https://scroller-motion.js.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

useViewportScroll has been depreciated

MrUltimate opened this issue · comments

Thanks for notifying @MrUltimate, I'll try and add support for v6.5.0 in the following days 👍

Hey @breadadams, thanks for dealing with this so quickly! I had another question I wanted to ask you: I'm building scroll based animations that rely on scroller-motion however, disabling it for mobile unmounts it completely. Is there a better way to keep existing animations on mobile without writing all the animation logic with native scroll fallbacks?

Np @MrUltimate!

I'm not sure I fully understand, would it be possible to provide a basic example (either a repo or a codesandbox/stackblitz style environment)?

If your animations that depend on scroller-motion are because they use the scroll position (e.g. taken from useScrollerMotion), you could probably fallback to the position from useScroll when disabling scroller-motion - but I might be misunderstanding the question.