Lazy Load images break parallax effect in Divi
-
With the “Lazy Load Images” checkbox checked on in Divi theme, the parallax effect on this page break. It move the content way down below the fold. It was suppose to look like this screenshot:
https://res.cloudinary.com/kikibres/image/upload/v1554231898/AboutUsparallaxeffect.jpgThe parallax effect that I used from (https://www.elegantthemes.com/blog/divi-resources/ultimate-guide-to-using-parallax-with-divi) is called
CSS method
. This method uses CSS to fix the background image in place while the other elements on the page scroll normally. This gives the impression that the content is moving in front of the background image.I tried to fix it by adding the
data-no-lazy="1"
to the image via a code module:
`<script>
jQuery(‘.lazy-ignore img’).attr(‘data-no-lazy’,’1′);
</script>`However, it didn’t work.
The page I need help with: [log in to see the link]
- The topic ‘Lazy Load images break parallax effect in Divi’ is closed to new replies.