Archived topic
Parallax on sections
12 replies · Started by fabiosilva on January 14, 2020
Hi,
I’m trying use the Parallax on sections, but not working.
I try search a solutions on your forum, but I can’t make a conclusion. 🙁
Hi there,
Just to confirm, have you enabled the "Parallax Effect" option inside your Section settings?
Let me know :)
Hi, Tom.
Yes. Is enabled. If you need, I can make a printscreen.
Thank you
In that case, it doesn't look like the necessary javascript file is loading.
Are you using any caching plugins?
Tom,
Is a clean installation. I do not use any caching plugin, yet. :(
Is there any caching on the server-level?
The actually javascript file isn't being enqueued, which means the standard wp_enqueue_script action in WordPress isn't working.
Tom,
I'm not sure about caching on the server-level. Strange... I use the same hosting plan to other projects.
Do you know any function that I can use to fire the script?
Hi,
I think it working now! And I've not maked any thing. :-S
One doubt: I use this CSS to fixed parallax:
.enable-parallax {
background-position: center bottom !important;
background-attachment: fixed;
}
But not working on my mobile phone. It's normal?
The scripts are actually loading fine now, so if you remove that CSS you'll see the real parallax effect.
Hi,
Thank you for your help
Yes, now, it's working! But I'd like to use the parallax fixed image.
Work fine on desktop, but not work on mobile
I use the CSS :
background-position: center bottom !important;
background-attachment: fixed;
Maybe they know the reason. Otherwise, no problem. :)
Hi there,
a lot of mobile browsers ignore fixed background images as they consume a lot of processing power and drain the users battery.
Thankful for your explanation, David! :-)
Solved.
You're welcome