dialog-lightboxv0.3.1

dialog-lightbox

A lightbox on the native <dialog>. Swipe, zoom and video for the photos you link to. It adds the behaviour; your markup and CSS decide how it looks.

  • 9.6 kB gzip
  • 0 dependencies
  • TypeScript
  • MIT
  • Baseline 2024
terminal
npm install dialog-lightbox

Get startedExamples

Try it

Click or tap a photo. Swipe or use the arrow keys, zoom with a click or double tap, close with a drag down, Escape or the back button.

live
  • Soft bands of violet, yellow, mint and purple
  • Amber stripes across dark red
  • Turquoise and dark blue bands drifting
  • Purple, a band of orange, and pale lilac
  • A thin blue line between pale blue and navy
  • A pale green band between mint and dark green
/

What it does

The examples show one feature each, running live next to their code. The docs list every attribute, option and state.