Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
A set of HTML elements used to display zoomed Figure content.
<div class="lightbox"> <div class="container"></div> <button class="close">Close</button> </div>
The only required component is the Container, which holds the primary content.
Note that the close button is not required, as any keypress or mouseclick will close the LightBox when active.
If no LightBox is found, the content will not be zoomed.
A Figure will frequently include hyperlinks for non-Treesaver browsers that link to a larger version of the image. If you add
target=lightbox to a link within a Figure, the click will not cause the browser to navigate and will instead open the LightBox.