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

Responsive image support #16

Open
johnnovak opened this issue Apr 9, 2023 · 1 comment
Open

Responsive image support #16

johnnovak opened this issue Apr 9, 2023 · 1 comment

Comments

@johnnovak
Copy link

glightbox itself supports the data-srcset and data-sizes attributes for responsive images, could you please add support for that?

Check the last example here:
https://github.com/biati-digital/glightbox/blob/master/README.md

@kinostl
Copy link

kinostl commented Jul 25, 2023

@johnnovak I was able to use this technique to get responsive images. It requires attr_list

![alt-text](/images/file.png){srcset="/thumbs/file.png 400w"}

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

No branches or pull requests

2 participants