Shopify themes, liquid, logos, and UX
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
Solved! Go to the solution
This is an accepted solution.
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.
This is an accepted solution.
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
Discover how to increase the efficiency of commerce operations with Shopify Academy's l...
By Jacqui Mar 26, 2025Shopify and our financial partners regularly review and update verification requiremen...
By Jacqui Mar 14, 2025Unlock the potential of marketing on your business growth with Shopify Academy's late...
By Shopify Mar 12, 2025