Closed MonsterDeveloper closed 6 years ago
No, but there're multiple ways to do what you're looking for:
a) Use media-queries in your CSS to disable the use of animated CSS properties
b) Never call .start
on mobile devices
c) Call .stop()
on mobile devices
I recommend to use the first option.
I noticed that for iOS Safari, I have to destroy the instance. Not calling start is not enough:
// init above
if (window.innerWidth >== 640) {
parallaxElements.forEach((parallaxElement) => parallaxElement.start())
} else {
parallaxElements.forEach((parallaxElement) => parallaxElement.destroy())
}
Is there any option to disable basicScroll on mobile devices?