Address: Lipsum Street Lorem
Way PO 60009 Dolor/ALASKA
Phone: +1 234 56 78
Fax: +1 876 54 32
The lighbox is shown when the user taps or clicks on an element with on attribute that targets the id of an amp-lightbox element.
To enable closing the lightbox via click or tap use the on attribute on one or more elements within the lightbox. In this example the user can click anywhere in the lightbox to close it.
For showing images in a lightbox, AMP also features the amp-image-lightbox component, which doesn't need the image to specified twice.