Lightweight lightbox for photo galleries without dependencies.
- Open images in popup full screen viewer.
- Grouping images in page to nice responsitive photosets.
- Support hotkeys, mouse wheel and touch events to swith images.
- Customizable and can be confugured with any DOM structure.
- Include js and css files from dist folder
- Add an images in your pare
- Place code on the bottom of the page or in the domContentLoaded callback
<article>
<h1>This is my beautiful cat!</h1>
<p>His name is Tom</p>
<p>
<a href="bigCat.jpg"><img src="cat.jpg" alt="My cat"></a>
</p>
</article>
<script>
lightBox({
containerSelector: "article",
lineSelector: "p",
imgSelector: "img",
bigImageAttr: "href"
});
</script>
See all features options in DEMO