3

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.

Copyright © 2016 by Mobius Studio

Melena Aaberg

Tech-Geek/Nerd

Address: Lipsum Street Lorem
Way PO 60009 Dolor/ALASKA

Phone: +1 234 56 78

Fax: +1 876 54 32

E-Mail: amp@mobius.studio