Closed
Description
First of all, thanks for this great plugin!
The example from the docs shows single images in the gallery instead of two listed images.
https://fancyapps.com/docs/ui/fancybox/api#initialization
<div id="gallery">
<a href="https://lipsum.app/id/1/800x600">
<img src="https://lipsum.app/id/1/300x225" />
</a>
<a href="https://lipsum.app/id/2/800x600">
<img src="https://lipsum.app/id/2/300x225" />
</a>
</div>
<script>
Fancybox.bind("#gallery a", {
on : {
ready : (fancybox) => {
console.log(`fancybox #${fancybox.id} is ready!`);
}
}
});
</script>
I'd like to use the bind method to observe the container for elements and add slides dynamically (I use infinite scroll in the grid).
Activity