Would be fantastic if this could work with blazy lazy image loading - https://www.drupal.org/project/blazy

Comments

W0LF created an issue. See original summary.

pol’s picture

Status: Active » Fixed

This should be fixed in latest 8.x-1.2, reopen the ticket if not.

w01f’s picture

Status: Fixed » Active

Thanks for the update, perhaps it's still just unclear to me as to how to use these modules together.

On my site www.dowellconsulting.com I have a "background" type paragraph set up to display as a "responsive background image" and using the CSS selector ".paragraph--id--[paragraph:id] .field--name-field-paragraph-background" to load the appropriate bg image for each bg paragraph.

I also have the parallax bg module set up targeting .field--name-field-paragraph-background.

I tried to change the bg paragraph display to blazy, and was able to get it working to lazy load the images. But the parallax effect no longer worked, even though the selector remained the same, and I tried several variations of the bg paragraph working with blazy to target.

Any ideas would be very welcome - I think I might be missing simple but not sure.

pol’s picture

Hi,

I think I made a mistake by setting this issue to Fixed earlier, sorry about that.

renguer0’s picture

Hi there. What about that issue?

Maybe it can be solved by adding "b-lazy" (without quotes) in the class of DIV with background image?