Guide
The parts of a lightbox, one chapter each.
Links are the slides, one dialog shows them, a few lines of JavaScript start it, and your CSS styles it with the state the library reports.
In this section
- Links · Every link in the gallery is a slide.
- The dialog · One dialog serves every gallery on a page.
- JavaScript · One function starts a lightbox and returns its controls.
- Styling · The library reports its state as attributes and custom properties.