BUG : Parralax Effect does Not Work On Apple Devices - Question | JoomShaper

BUG : Parralax Effect does Not Work On Apple Devices

Laurent

Laurent

SP Page Builder 2 years ago

Hi,

I have a section with a background not fixed (with parralax effect).

  • works fine on androir devices with chrome or firefox => image is correctly displayed => see here https://prnt.sc/b3wf75JvJDKw

  • does not work from all apple devices (iPhone etc...) with chrome or firefox or safari => image is NOT correctly displayed => see here https://prnt.sc/8dwoevEPfZOM

See Hidden Content area to test live site.

This is a big problem for us because some customers want parralax effect.

Could you please provide a solution?

Thanks L.

0
27 Answers
Pavel
Pavel
Accepted Answer
1 year ago #147525

Hi.

I don't think this can be fixed and I think this question should be addressed to Apple. For Apple devices, there are only workarounds not only for SPBB, but in general in HTML/ CSS, similar to that I described above.

If you google the subject, then see this.

0
Laurent
Laurent
Accepted Answer
1 year ago #147526

ok thanks for the feedback Have a good day

0
Toufiq
Toufiq
Accepted Answer
Senior Staff 2 years ago #134281

Hi there,

I appreciate you reaching out. I sincerely apologize for this oversight. Will you please provide me the Joomla administrator access to check the issue? I will check & get back to you soon. 

-Thanks

0
Laurent
Laurent
Accepted Answer
2 years ago #134283

the problem is not coming from my website, but from SP page builder. I think you can from your own demo website.

but, after all, I have added credentials in Hidden Content area.

0
Toufiq
Toufiq
Accepted Answer
Senior Staff 2 years ago #134292

Thanks for quick response. I have shared your credential to our developer team. I will get back to you soon. Thanks

0
Pavel
Pavel
Accepted Answer
2 years ago #134296

Hi Laurent.

This is not SPPB issue, but an issue with support of background-attachment: fixed; on devices with iOS. Parallax used in SPPB is based on this property. Therefore, you can disable this for all mobile devices using CSS Media Queries or only for iOS devices using CSS Media Queries for iOS.

Something like

@media (max-width: 991.98px) {
    .your-section-class {
        background-attachment: scroll !important;
        background-position: center !important;
    }
}

Or looking for third-party parallax plugins with iOS support.

But in general, any parallax effects on mobile devices are redundant and lead to poor page speed.

0
Toufiq
Toufiq
Accepted Answer
Senior Staff 2 years ago #134297

@Pavel I know the solution. But, We are trying to provide permanent solution. By the way, Thanks

0
Pavel
Pavel
Accepted Answer
2 years ago #134299

...Or workaround by using Image addon with interactions settings + some CSS as a background image instead of section bg parallax

0
Laurent
Laurent
Accepted Answer
2 years ago #134310

yes also..but many code and customisation for nothing.. you know what I mean ;-)

0
Laurent
Laurent
Accepted Answer
2 years ago #134307

@pavel : thanks for the info, yes could be a solution. about page loading, yes I know but sometimes the customer insists on having this effect :-/

0
Laurent
Laurent
Accepted Answer
2 years ago #134309

@toufiq : ok thanks, yes could be helpful.

0
Laurent
Laurent
Accepted Answer
2 years ago #135176

do you know when this bug will be fixed ?

0
Toufiq
Toufiq
Accepted Answer
Senior Staff 2 years ago #135277

Today, the developer team informed me that this issue is related to the browser. Please continue using custom CSS until the browser adds support for these properties. Thank you for your understanding.

0
Laurent
Laurent
Accepted Answer
2 years ago #135289

Ok so what is your advice about CSS code to use to make paralax working on apple device?

0
Toufiq
Toufiq
Accepted Answer
Senior Staff 2 years ago #135294

Apple device browser doesn't have feature to use the parallax using css property. You have to turn off the parallax. Thanks

0
Laurent
Laurent
Accepted Answer
2 years ago #135297

ok for Apple device browser like safari => understood.

but the problem is the same if you use Google Chrome on Apple device.

So what is the css to use?

0
Toufiq
Toufiq
Accepted Answer
Senior Staff 2 years ago #135301

Same for other browser also. I forget to share it.

0
Laurent
Laurent
Accepted Answer
2 years ago #135307

OK If you can see with your dev team please.

Because I have found joomla extension where paralax works fine on chrome on apple device.

try those links and scroll the pages, you will see paralax effects on some elements (buttons, blocs, images,...) :

https://smartslider3.com/portfolio/

https://smartslider3.com/blogger-template/

https://smartslider3.com/bakery-page/

https://smartslider3.com/steak-bistro/

0
Toufiq
Toufiq
Accepted Answer
Senior Staff 2 years ago #135334

Parallax image slider and section background is not similar.

0
Laurent
Laurent
Accepted Answer
2 years ago #135337

I know. But this is the proof that can work. I think you could adjust your tool to make it work.

0
Toufiq
Toufiq
Accepted Answer
Senior Staff 2 years ago #135342

Our developer team has been trying different approaches, but no solution has been found yet. However, if we can solve this issue, it will make our users happy. Thank you

0
Laurent
Laurent
Accepted Answer
2 years ago #135344

ok no problem regarding this point.

but is there any css trick you can advice to wait until solved ?

0
Toufiq
Toufiq
Accepted Answer
Senior Staff 2 years ago #135350

Already, Pavel has been shared the CSS code. Thanks

0
Laurent
Laurent
Accepted Answer
2 years ago #135361

Yes pavel shared CSS to disable paralax effect .. this is ok.

I was just wondering a solution (css trick) to force paralax working also on apple device?

0
Pavel
Pavel
Accepted Answer
2 years ago #135365

Hi Laurent. Add parallax-section class to the section where you want parallax. Set up overflow x/y to hidden in the section settings. Add Image addon with big image. set up its interaction and turn ON for tablet and mobile. For other addons in this section set position relative, z-index 3

And CSS

.parallax-section :is(.sppb-row-container, .sppb-row-column, .sppb-column, .sppb-column-addons) {
    position: static !important;
}
#IMAGE_ADDON_ID {
    position: absolute;
    inset: 0;
}

Result

Any other methods will be much more complicated and will require JS coding.

0
Laurent
Laurent
Accepted Answer
2 years ago #135366

Many thanks @Pavel, I will check this out ;-)

0
Laurent
Laurent
Accepted Answer
1 year ago #147502

hi support team,

do you think this could be improved?

0