10 Best Gallery Lightbox Libraries In Pure JavaScript/CSS (2025 Update)

Here is a constantly updated list of the 10 best Vanilla JavaScript and Pure CSS-powered Gallery Lightbox Libraries to present your images & products elegantly.

I hope you like it and don’t forget to spread the world.

Originally Published Nov 22 2017, updated Jan 17 2025

1. Responsive Lightbox Gallery With Pure JavaScript And CSS3 – lightGallery

A responsive, touch-enabled, dependency-free JavaScript lightbox gallery library that enables you to present various types of media (images, videos, etc) in a fullscreen, scalable, navigatable, shareable, downloadable and CSS3 animated gallery popup.

Responsive Lightbox Gallery With Pure JavaScript And CSS3 – lightGallery

[Demo] [Download]


2. Feature-rich Lightbox Gallery Based On Bootstrap 5 – bs5-lightbox.js

A JavaScript lightbox gallery plugin for showcasing images, videos, Instagram posts, iframes in Bootstrap 5 modal & carousel components.

Feature-rich Lightbox Gallery Based On Bootstrap 5 – bs5-lightbox.js

[Demo] [Download]


3. Elegant Any Content Gallery Lightbox In Pure JavaScript – GLightbox

A simple yet powerful, mobile-friendly gallery lightbox plugin written in pure JavaScript and CSS/CSS3.

Elegant Any Content Gallery Lightbox In Pure JavaScript – GLightbox

[Demo] [Download]


4. Video/Iframe/Gallery/Inline Content Lightbox Library – Tobii

A feature-rich, responsive, accessible, mobile-friendly lightbox library that makes it possible to display any content type (HTML5/Youtube video, iframe content, inline HTML, and even image gallery) in a modal popup.

video-iframe-gallery-inline-content-lightbox-library-tobii

[Demo] [Download]


5. Mobile Optimized Lightbox Gallery – touchTouch

touchTouch is a JavaScript-based gallery lightbox plugin created entirely in HTML5 & Vanilla JavaScript and can be used straight after downloading.

mobile-lightbox-gallery-touch

[Demo] [Download]


6. CSS Only Minimal Responsive Image Gallery lightbox – CSSBox

A minimal, responsive image gallery lightbox where the user is able to navigate between full sized images in a fullscreen lightbox popup. Built using CSS / CSS3 and plain html markup.

CSS Only Minimal Responsive Image Gallery lightbox – CSSBox

[Demo] [Download]


7. Lightweight Image Gallery With Lightbox Popup – havLightbox

A lightweight galley lightbox JavaScript plugin that allows you to create image galleries with a lightbox overlay.

image-gallery-popup-havlightbox

[Demo] [Download]


8. Tiny Gallery Lightbox For Images & Videos – MK Lightbox

A dead-simple JavaScript library to display your images and videos in a lightbox popup or a navigatable gallery lightbox without having to write any JS code.

gallery-lightbox-mk

[Demo] [Download]


9. Simple Gallery Lightbox with Javascript and CSS3 – baguetteBox.js

A simple, lightweight, mobile-friendly Javascript library for displaying a gallery of images in a fully responsive & customizable lightbox. You can navigate through the gallery images with arrows navigation or swipe gestures on touch devices.

Simple Gallery Lightbox with Javascript and CSS3 - baguetteBox.js

[Demo] [Download]


10. Image & Iframe Gallery Lightbox In Vanilla JavaScript – Scpop

An easy-to-use JavaScript library that enables you to display images and/or iframe content in a responsive gallery popup.

Image & Iframe Gallery Lightbox In Vanilla JavaScript - Scpop

[Demo] [Download]


More Resources:

To find more JavaScript and/or CSS libraries to showcase your favorite images on the web app, don’t forget to check out our other awesome resources.

You Might Be Interested In: