trvswgnr / bs5-lightbox

A pure JS lightbox gallery plugin for Bootstrap 5 based on the Modal and Carousel components
https://trvswgnr.github.io/bs5-lightbox/
MIT License
125 stars 28 forks source link

Its not working with bootstrap 5 card #60

Open ShubhamAnand opened 1 year ago

ShubhamAnand commented 1 year ago

Hi, I tried using data-toggle attribute along with data-remote but its not triggering inside bootstrap 5 card. Here is the sample code for reference:

let newImg = document.createElement('img'); newImg.src = 'https://i.gifer.com/33Ho.gif'; newImg.setAttribute("data-toggle","lightbox"); newImg.setAttribute("data-remote",image);

https://github.com/ShubhamAnand/infinitescroll/blob/main/index.html

trvswgnr commented 1 year ago

thanks for providing the example, i'll take a look at this asap! can you give me a little more context if possible? browser, os, and anything else you think is important.