jscottsmith / react-scroll-parallax

🔮 React hooks and components to create parallax scroll effects for banners, images or any other DOM elements.
https://react-scroll-parallax.damnthat.tv/
MIT License
2.9k stars 158 forks source link

Add `disabled` prop to `ParallaxProvider` #206

Closed dan-cooke closed 1 year ago

dan-cooke commented 1 year ago

I have seen a bit of buzz about disabling the Parallax on mobile - quite common.

Currently the only way to do this to create a proxy/wrapper component around this libraries Parallax component.

But it would be much more convenient to allow consumers to just disable this in one place, the ParallaxProvider

jscottsmith commented 1 year ago

Agreed, see #183. Just a little behind working on this lately.