Description
lightgallery.js is a JavaScript lightbox for showing images and videos on a web page, with no dependencies. The README says the project has been merged into lightGallery, and that version 2 is documented on its own website. Version 2 was rewritten in TypeScript and no longer needs jQuery. It adds pinch to zoom, swipe to close, zoom from the origin, inline galleries and virtual slides. Slides can be added or removed while the gallery is open. Newer image formats such as WebP and JPEG XL are supported, along with Wistia and HTML videos, which can be passed in with a data-video attribute. Some features were removed, and separate plugins are planned for other video hosts. Since version 2 the license key is passed as a plugin option. The author asks that questions and ideas be started as discussions on GitHub.…
Highlights
- Image and video lightbox with no dependencies
- Pinch to zoom, swipe to close and zoom from the origin
- Inline galleries and virtual slides
- Add or remove slides while the gallery is open
- Wistia and HTML video support
Ratings & Reviews
No ratings yet
Be the first to rate Lightgallery.js.
People also visit

react-image-gallery
Responsive image gallery, carousel, image slider react component
Lightgallery.js FAQ
Is lightgallery.js still maintained?
The README says it has been merged with lightGallery, and version 2 of the library is documented at lightgalleryjs.com.
Does it need jQuery?
No. Version 2 does not require jQuery as a dependency.
Do I need a license?
Since version 2 the license key is passed as a plugin option. The README says an existing lightgallery.js license also covers lightGallery.
Which media can it show?
Images, including WebP and JPEG XL, and videos, including Wistia and HTML videos. HTML videos can be passed with a data-video attribute.
Where do I ask questions?
The README asks for questions, ideas and suggestions about version 2 to be opened as a discussion on GitHub.
What are the best Lightgallery.js alternatives?
Popular alternatives to Lightgallery.js include Photoswipe, React BNB Gallery and Viewerjs. See all Lightgallery.js alternatives




