You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey all, love this little library. However, I cannot seem to get data attributes to work at all. I have tried setting the speed to 0 for static and tried disabling on mobile (which I believe it says is default) without any success. I'm not sure what the problem is.
code is as follows:
HTML:
<divclass="parallax-window vanity-banner-container" data-speed="0.0" data-parallax="scroll" data-image-src="https://cdn.shopify.com/s/files/1/0016/3387/8103/files/vanityGlamBG.jpg?2591707482400048148"><divclass="parallax-content-container"><imgclass="van-glam" src="https://cdn.shopify.com/s/files/1/0016/3387/8103/files/VanGlam.png?16888294906577413236"><spanclass="tm">™</span><divclass="van-content">Here's some stuff that I want to show as content</div><divclass="van-shopBtn">SHOP</div></div>
The parallax works fine, and scrolls with the page, but I want to implement this into my employers website and I would like to have the option of working with the attributes later for when changes may arise. For instance, right now, the scrolling is still active even though in the above text I have the data-speed attribute set to "0.0":
Is there something I'm missing? I know the other attributes are working because my image wouldn't show up and scroll with my page if that was the case. Any help would be appreciated. Thanks,
The text was updated successfully, but these errors were encountered:
Hey all, love this little library. However, I cannot seem to get data attributes to work at all. I have tried setting the speed to 0 for static and tried disabling on mobile (which I believe it says is default) without any success. I'm not sure what the problem is.
code is as follows:
HTML:
CSS:
The parallax works fine, and scrolls with the page, but I want to implement this into my employers website and I would like to have the option of working with the attributes later for when changes may arise. For instance, right now, the scrolling is still active even though in the above text I have the data-speed attribute set to "0.0":
Is there something I'm missing? I know the other attributes are working because my image wouldn't show up and scroll with my page if that was the case. Any help would be appreciated. Thanks,
The text was updated successfully, but these errors were encountered: