Simple & Lightweight Image Lightbox for Bootstrap 5 | bs5lightbox.js

Bootstrap lightbox is a simple and lightweight JavaScript library that uses the Bootstrap 5 modular component to create a simplified, responsive image box.

responsive lightbox image gallery jquery, bootstrap lightbox multiple images, lightbox jquery download, lightbox popup bootstrap, javascript image gallery with thumbnails

How to make use of it:

1. Load the bs5lightbox.js JavaScript library into the document where the Bootstrap 5 framework is installed.

<!-- Bootstrap 5 -->
<link rel="stylesheet" href="/path/to/cdn/bootstrap.min.css" />
<script src="/path/to/cdn/bootstrap.min.js"></script>

<!-- Image Lightbox Plugin -->
<script src="/path/to/bs5lightbox.js"></script>

2. Add a link with the data-modal=”bs-lightbox” attribute to your image.

<a data-modal="bs-lightbox" 
   <img src="thumb-1.jpg" />
<a data-modal="bs-lightbox" 
   <img src="thumb-2.jpg" />
<a data-modal="bs-lightbox" 
   <img src="thumb-3.jpg" />

3. Customize the lightbox styles.

.modal-content {
  background-color: rgba(0,0,0,.75);

  max-width:100%; max-height:100%;

Minimal Image Lightbox Plugin For Bootstrap 5, bs5lightbox.js Plugin/Github

See Demo And Download

Official Website(avalon-studio): Click Here

This superior jQuery/javascript plugin is developed by avalon-studio. For extra advanced usage, please go to the official website.

Related Posts


Responsive Multiple Selection Combo Box using Bootstrap 3 | MagicSuggest

MagicSuggest is an easy-to-use jQuery plugin for creating a combo menu that allows you to select multiple items from a dropdown list with typing and auto-complete support….


Material Design Inspired Tab UI In Vanilla JavaScript

Material Design tab vanilla JS implements a material design-inspired tab component with a click ripple effect and an active sliding menu cursor. Must Read: Responsive Accessible Tabs…


Simple Countdown Timer App In jQuery

The countdown is a front-end application that allows starting the countdown with two options: set a target date or write the number of countdown days. A countdown…


Add Animation to Your HTML5 Pages | animate.js

animate.js is a small JavaScript library that provides a convenient way to apply CSS animations powered by Animate.css to DOM elements without writing any CSS. Easily apply…


Responsive Hover Parallax Cards With Vuejs

Vue Responsive Parallax Cards Hover Create response cards with a scroll-triggered parallax effect in your Vue.js application. Must Read: jQuery Sliding Display Your Content Like a Deck…


Responsive Pure CSS Only Accordion & Tabs Component

Responsive pure CSS accordion tabs and tabs will automatically convert to a vertical accordion interface on mobile devices. Must Read: Create Dynamic Accordion Giving JSON Data Using…