Hi, can anyone help me activate the parallax effect on mobile view? I’ve enabled it in the theme customizer, but it’s not working on my phone.
my store: https://hera-theme.myshopify.com/
pass: hera
A user is trying to enable the parallax effect on mobile devices for their Shopify store using the Dawn theme, but it’s not working despite being enabled in the theme customizer.
Root Cause Identified:
Technical Explanation:
.LT-parallax-on uses background-attachment: fixed for the parallax effect@media only screen and (hover: none) and (pointer: coarse) detects mobile/touchscreen devicesbackground-attachment: scroll, turning off parallax on mobileWhy This Exists:
Potential Solution:
The user expressed gratitude for the explanation.
Hi, can anyone help me activate the parallax effect on mobile view? I’ve enabled it in the theme customizer, but it’s not working on my phone.
my store: https://hera-theme.myshopify.com/
pass: hera
It’s not about Dawn, but about sections you’ve got from Luna Templates.
Section code includes these CSS rules:
.LT-parallax-on {
background-attachment: fixed;
}
. . .
@media only screen and (hover: none) and (pointer: coarse){
.LT-parallax-on {
background-attachment: scroll;
}
}
First rule tells the browser to implement fixed background for parallax effect.
But second one turns this off for mobiles (devices with touchscreen and no mouse).
The reason for this is that fixed background usually either not working or bad looking on mobile devices – browser either ignores first rule or scrolling becomes jagged.
If you want to try it – comment out the second CSS rule.
thank you so much