AMP Lightbox

Lightboxes Can Contain Anything

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 بواسطة 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.

عنوان: Lipsum شارع أبجد
طريقة PO 60009 دولور / ألاسكا

هاتف: +1 234 56 78

فاكس: +1 876 54 32

البريد الإلكتروني: amp@mobius.studio