figlight

A tiny lightbox that keeps your captions. Click any photo below.

Keyboard: Esc closes, ← and → move between images. On a phone, swipe. The caption under the enlarged photo is the page’s own <figcaption>, links and credits included.

A hillside town above a lake in northern Italy
A hillside town above the lake. Photo by Luca Bravo on Unsplash.
A canal lined with old houses
A canal and its reflections.
A cathedral roof with carved spires
Spires, close up.

What it does not do

How it was switched on here

One line, nothing else:

<script src="../dist/figlight.js"></script>

Free and MIT licensed. figlight home page · code on GitHub · built by 4Queries.