The amp-lightbox component allows for a “lightbox” or similar experience - where upon user interaction a component expands to fill the viewport, until it is closed again by the user.
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.
عنوان: اختبار طريقة اختبار الشارع P.O. 60009 دولور / ألاسكا
الخامس +1 234 56 78
فاكس: +1 876 54 32