biati-digital / glightbox

Pure Javascript lightbox with mobile support. It can handle images, videos with autoplay, inline content and iframes
MIT License
2.03k stars 228 forks source link

rel selector doesn't work #413

Closed Artiom-M closed 1 year ago

Artiom-M commented 1 year ago

I have a selector like this:

const lightbox = GLightbox({"selector":"[rel=\"ligthbox\"]"});

And image tag:

<a rel="lightbox" data-width="1200" data-height="1200" href="/images/7/0 0....

It works with class style selector.

Also another question, how to put 2 or more selectors in the config?