Guest Posted October 18, 2020 Share Posted October 18, 2020 Hello, I have parallax enabled for a banner image (which I like). However, on mobile, scrolling down the page looks very jittery. I'd like to disable parallax on mobile altogether, while leaving it functional on desktops. How can I do that? I've tried injecting the following code into the page header, to no avail: @media screen and (max-width:640px) { .parallax { background-attachment: inherit; } } Thanks, Joe Link to comment
Guest Posted October 18, 2020 Share Posted October 18, 2020 I figured out a solution that seems to work, so here goes it for anyone finding this via Google some time later: ______________________ Add the following to Page Settings > Advanced > Header <style> @media screen and (max-width:640px) { [data-parallax-id="PLACE ID HERE"] figure { transform: none !important; top: 0 !important; bottom: 0 !important; will-change: auto !important; } } </style> View this resource to learn how to find the Parallax ID: https://www.squarestylist.com/blog/overlay-color _ I will not be following this thread, so if it doesn't work for you: Sorry, godspeed. Link to comment
tuanphan Posted October 20, 2020 Share Posted October 20, 2020 If you use SS 7.1, you can change 640px to 767px Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!) Link to comment
Recommended Posts
Archived
This topic is now archived and is closed to further replies.