Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doesn't work with lazysizes when used as background image #163

Open
PubliAlex opened this issue Jan 27, 2020 · 1 comment
Open

Doesn't work with lazysizes when used as background image #163

PubliAlex opened this issue Jan 27, 2020 · 1 comment

Comments

@PubliAlex
Copy link

Issue description:

The github page says that jarallax is compatible with lazysizes, but only when used in tag. When you use lazysizes for background images (so using data-bg attribute), jarallax doesn't work.

Version used:

1.12.0

Code to reproduce the issue (HTML blocks + JavaScript initialization)

<section data-jarallax data-speed="0.2" class="jarallax lazyload" data-bg="image.jpg" style="min-height:700px">
</section>

Best regards,

Alex

@nk-o
Copy link
Owner

nk-o commented Jan 29, 2020

Hi Alex.

We are using the only img tag with Jarallax. If you have any fix for background images, feel free to make PR https://github.com/nk-o/jarallax/pulls

Regards, nK.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants