Enhanced image lightbox component for Bootstrap 5.3+ with zoom, navigation, and customizable features. Click any image below to see it in action!
Click any image to open the lightbox. Use arrow keys or navigation buttons to browse.
This gallery shows thumbnails at the bottom for quick navigation.
These images support high zoom levels. Use mouse wheel, zoom buttons, or pinch gestures.
Auto-advancing slideshow with play/pause controls.
These images open individually, not as part of a group.
Single image without grouping
Standalone landscape image
Zoomable abstract image
Images with specific custom settings applied via data attributes.
Navigation arrows and keyboard controls disabled
Custom ConfigZoom controls and gestures disabled
No Zoom<img src="image1.jpg"
data-lightbox="gallery"
data-lightbox-caption="Caption text"
alt="Image 1">
<img src="image2.jpg"
data-lightbox="gallery"
data-lightbox-caption="Another caption"
alt="Image 2">
// Basic initialization
const lightbox = new ImageLightbox();
// With custom options
const lightbox = new ImageLightbox({
navigation: true,
thumbnails: true,
zoom: true,
maxZoom: 4,
slideshow: false
});
<img src="detail.jpg"
data-lightbox="zoom-gallery"
data-lightbox-max-zoom="5"
data-lightbox-zoom-step="0.25"
alt="High detail image">
<img src="slide1.jpg"
data-lightbox="slideshow"
data-lightbox-slideshow="true"
data-lightbox-slideshow-speed="4000"
alt="Slide 1">