Skip to content

Commit

Permalink
πŸ“– Update markdown auto-lightbox.md
Browse files Browse the repository at this point in the history
  • Loading branch information
AnuragVasanwala committed Apr 14, 2022
1 parent 825c1c2 commit 02ff8d1
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion docs/spec/auto-lightbox.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,14 +53,22 @@ To disable it on a particular document section:
</section>
```

Or to disable it for your entire document altogether:
To disable it for your entire document altogether:

```html
<body data-amp-auto-lightbox-disable>
<!-- No elements in the document will be automatically lightboxed -->
</body>
```

Or to prevent automatically loading of `amp-auto-lightbox` script on page load:

```html
<html ⚑ lang="en" data-amp-auto-lightbox-disable>
<!-- Prevent automatically loading of `amp-auto-lightbox` script on page-load -->
</html>
```

If you'd like manual tuning of disabled/enabled images and/or grouping, please use
[`amp-lightbox-gallery`](https://amp.dev/documentation/components/amp-lightbox-gallery)
directly.

0 comments on commit 02ff8d1

Please sign in to comment.