No dependencies
About 60 lines of plain JavaScript instead of a heavy plugin.
Paste your image links, choose the grid, hover effect and lightbox style, and get a ready-to-use gallery with a full-screen viewer. No jQuery and no plugins, just small vanilla JavaScript.
Use full image URLs or paths from your own site, such as /images/photo-1.jpg. The sample photos come from picsum.photos and need an internet connection to show.
Runs entirely in your browser. Nothing is uploaded to any server.
About 60 lines of plain JavaScript instead of a heavy plugin.
Real links, alt text, focus return, Escape, arrows and an ARIA dialog.
Swipe between photos and the grid drops to two columns on small screens.
Each thumbnail is a normal link to the full-size image, so the gallery still works if JavaScript fails: the link simply opens the image. When the script runs, it intercepts the click and shows the image in a fixed overlay instead.
The overlay is hidden with opacity and visibility rather than display, which lets it fade or zoom in smoothly and keeps its buttons out of the tab order while it is closed. Focus moves to the close button on open and returns to the thumbnail on close.
object-fit: cover crops each image to the chosen aspect ratio.
Left and right arrows change images, Escape closes the viewer.
Animations switch off for visitors who ask for less motion.
No. The generated lightbox uses a few lines of plain JavaScript and works in all modern browsers.
Yes. After copying the code, change the src of each thumbnail img to a smaller file and keep the full-size file in the link href.
Thumbnails are real links with alt text, the viewer is an ARIA dialog, it can be closed with Escape and focus returns to the thumbnail you opened.
Yes. The grid becomes two columns on small screens, and you can swipe left or right in the viewer to change images.
The generated script handles one gallery and one overlay. For several galleries, wrap the script in a function and run it once per gallery container.
More free tools from My Panda Toolbox.