A lightweight, beautiful, responsive lightbox for images
Get it at1. Include the CSS and JavaScript files in your HTML:
<link rel="stylesheet" href="lite-light.min.css">
<script type="module">
import { init } from 'lite-light.min.js';
init();
</script>
2. Add the data-lightbox
attribute to any image with the URL of the high-resolution
version:
<img src="thumbnail.jpg" data-lightbox="full-size.jpg" alt="Description">
3. That's it! Click any image to see the lightbox in action.