DEV Community

Cover image for ImageViewer.js: Zero-Dependency Image gallery lightbox Component
jQueryScript
jQueryScript

Posted on

ImageViewer.js: Zero-Dependency Image gallery lightbox Component

ImageViewer.js: zero-dependency image viewer that handles full-screen previews with one script tag

Just include the CDN link and every image on your page gets click-to-preview functionality

Key features:

✅ No configuration needed

✅ Mouse wheel zoom and drag to pan

✅ Keyboard navigation with arrow keys and ESC

✅ High resolution image loading

✅ Rotation and download controls

✅ Works with dynamically added images

✅ Pure vanilla JavaScript, no framework required

Perfect for portfolios, documentation sites, or any project where you need professional image viewing without heavyweight libraries.

👉 Blog Post

👉 GitHub Repo

👉 Live Demo

Top comments (0)