Back to articles
K7: Lightweight Vanilla JS Gallery Lightbox

K7: Lightweight Vanilla JS Gallery Lightbox

via Dev.to WebdevjQueryScript

K7: a vanilla JavaScript gallery lightbox that fits in ~7.7 KB — JS and CSS in a single file, no dependencies. Key features: Fullscreen overlay with keyboard navigation (arrow keys + Escape) Swipe gesture support for mobile Autoplay mode tied to image load completion Download button for the current image High-res loading from a large/ subfolder on click CSS custom properties for theming One <script> tag and it activates on all targeted images. Great for portfolios, product galleries, and docs sites. 👉 Blog Post 👉 GitHub Repo 👉 Live Demo

Continue reading on Dev.to Webdev

Opens in a new tab

Read Full Article
3 views

Related Articles