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.
Top comments (0)