Parallax Effect on Mobiles
- GK User
- Thu Mar 30, 2017 5:48 pm
OK, I promise to be a "good boy" on the forum now and patiently wait my turn...
One question, though: I'm seeing that my homepage doesn't do the parallax effects when viewed on (iOS) mobiles. Is this intended or can it be fixed?
My site was built from scratch, so not via the Quick Start package.
Thanks!
One question, though: I'm seeing that my homepage doesn't do the parallax effects when viewed on (iOS) mobiles. Is this intended or can it be fixed?
My site was built from scratch, so not via the Quick Start package.
Thanks!
-
- Junior Boarder
- Joshua M
- Fri Mar 31, 2017 9:50 pm
Hello,
Yes the parallax is disabled form mobile devices (it's intended).
You can change it by adding the following custom css code:
Yes the parallax is disabled form mobile devices (it's intended).
You can change it by adding the following custom css code:
- Code: Select all
@media (max-width: 1040px) {
.box.parallax {
background-attachment: fixed;
}
}
-
- Moderator
- GK User
- Sat Apr 01, 2017 6:18 am
Hi & thanks!
Should I add that code to the template's custom CSS? I tried on my dev site and it had no effect when I viewed on an iPhone...
Should I add that code to the template's custom CSS? I tried on my dev site and it had no effect when I viewed on an iPhone...
-
- Junior Boarder
- Joshua M
- Mon Apr 03, 2017 10:24 pm
Yes, please add this code into your override.css file, could you provide your website URL?
-
- Moderator
- GK User
- Thu Apr 06, 2017 11:12 pm
Hi Joshua,
The (test) site I tested your code on is "offline", but here's the URL for the live site: http://cineaulac.ch.
Thanks for any and all advice!
The (test) site I tested your code on is "offline", but here's the URL for the live site: http://cineaulac.ch.
Thanks for any and all advice!
-
- Junior Boarder
- Joshua M
- Fri Apr 07, 2017 12:20 pm
On your live site http://cineaulac.ch I can't see mentioned code.
-
- Moderator
- GK User
- Fri Apr 07, 2017 12:44 pm
Sorry, I had removed it when it didn't work ... it's in the override.css now (and overrides are activated in the template).
Thanks!
Thanks!
-
- Junior Boarder
- Joshua M
- Sun Apr 09, 2017 10:04 pm
I've checked it again and the parallax effect is disabled by iOS mobile browser.
The reason: Fixed-backgrounds have huge repaint cost and decimate scrolling performance.
The reason: Fixed-backgrounds have huge repaint cost and decimate scrolling performance.
-
- Moderator
- GK User
- Sun Apr 09, 2017 10:26 pm
Thanks Joshua,
So you're saying it would work on Android devices? Just so I know what to look for... Appreciate the help.
So you're saying it would work on Android devices? Just so I know what to look for... Appreciate the help.
-
- Junior Boarder
- Joshua M
- Mon Apr 10, 2017 7:57 am
Hi,
I've checked only iOS, but on Android this feature may be also disabled.
I've checked only iOS, but on Android this feature may be also disabled.
-
- Moderator
10 posts
• Page 1 of 1