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 by the user.

Basic Usage

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

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