Fullscreen Images.
Zero Dependencies.
A fast, lightweight image lightbox built with vanilla JavaScript. Smooth zoom on desktop, pinch zoom on touch. One file, no jQuery, no frameworks, no bloat.
Features
Everything a lightbox needs. Nothing it doesn't.
Fullscreen Viewer
Click any image to open it fullscreen with a smooth fade transition. Keyboard navigation with Escape to close and arrow keys for galleries.
Smooth Zoom
Scroll to zoom on desktop with momentum. Pinch to zoom on touch devices with proper inertia. Double-tap to toggle zoom level. Pan with drag.
Zero Dependencies
Pure vanilla JavaScript. No jQuery, no React, no framework runtime. One JS file, one CSS file. Works everywhere JavaScript runs.
Touch & Desktop
First-class touch support with pinch, pan, and swipe gestures. Desktop users get scroll zoom, keyboard nav, and click-outside-to-close.
Usage
No setup required
Link a full-size image - or use the [nitrolitebox] shortcode - and NitroLiteBox detects it automatically. No classes or setup needed.
Open source. Use it anywhere.
MIT-licensed, free forever. Use it on client sites, personal projects, or commercial products. Star it on GitHub if it saves you time.
