dialog-lightboxv0.3.1

Captions

The library has no caption of its own.

Listen for change and write whatever you like into an element of the dialog; here it’s the figure’s caption.

live · Captions
A thin blue line between pale blue and navy
Pale blue and navy, split by a thin line
Dark teal over a thin orange stripe and orange
Teal over orange
example.html
<div id="captioned" class="figures">
  <figure>
    <a href="/media/photo-3-1600.jpg" data-dlb-width="1600" data-dlb-height="1066"><img src="/media/photo-3-480.jpg" alt="A thin blue line between pale blue and navy" /></a>
    <figcaption>Pale blue and navy, split by a thin line</figcaption>
  </figure>
  <figure>
    <a href="/media/photo-2-1600.jpg" data-dlb-width="1600" data-dlb-height="1066"><img src="/media/photo-2-480.jpg" alt="Dark teal over a thin orange stripe and orange" /></a>
    <figcaption>Teal over orange</figcaption>
  </figure>
</div>
/