Lightbox is small javascript library used to overlay images on top of the current page. It's a snap to setup and works on all modern browsers.
- Single Image lightbox
- Gallery lightbox
- Iframe lightbox
<!-- Gallery -->
<div class="lightbox" style="width: 100%">
<a href="https://picsum.photos/600">
<img src="https://picsum.photos/600" alt="Image" width="300">
</a>
<a href="https://picsum.photos/700">
<img src="https://picsum.photos/700" alt="Image" width="300">
</a>
<a href="https://picsum.photos/800" class="lazy">
<img src="https://picsum.photos/800" alt="Image" width="300">
</a>
</div>
<!-- Single -->
<div class="lightbox" style="width: 100%">
<a href="https://picsum.photos/600" class="lazy">
<img src="https://picsum.photos/600" alt="Image" width="300">
</a>
</div>
<!-- Iframe -->
<div class="lightbox iframe" style="width: 100%">
<a href="https://www.youtube.com/embed/2MpUj-Aua48">
<img src="https://picsum.photos/600" alt="Image" width="300">
</a>
</div>