From 2f76a34897c5d4479aec9f694d46cc728f1af6b5 Mon Sep 17 00:00:00 2001 From: Hakim El Hattab Date: Wed, 26 Mar 2025 15:08:44 +0100 Subject: [PATCH] add lightbox example to demo deck --- README.md | 2 +- demo.html | 19 +++++++++++++++++++ examples/backgrounds.html | 2 +- .../{preview-overlays.html => lightbox.html} | 0 examples/markdown.html | 2 +- examples/markdown.md | 2 +- examples/scroll.html | 2 +- 7 files changed, 24 insertions(+), 5 deletions(-) rename examples/{preview-overlays.html => lightbox.html} (100%) diff --git a/README.md b/README.md index 2280b33c..290e3770 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@

- Slides + Slides

reveal.js is an open source HTML presentation framework. It enables anyone with a web browser to create beautiful presentations for free. Check out the live demo at [revealjs.com](https://revealjs.com/). diff --git a/demo.html b/demo.html index 36d83028..ab654977 100644 --- a/demo.html +++ b/demo.html @@ -197,6 +197,25 @@ +
+

Lightbox

+ Turn any element into a lightbox using data‑preview‑image & data‑preview‑video. +
+
+

+								<img src="image.png" data-preview-image="image.png">
+							
+ +
+
+

+								<img src="video.png" data-preview-video="video.mp4">
+							
+ +
+
+
+

Add the r-fit-text class to auto-size text

FIT TEXT

diff --git a/examples/backgrounds.html b/examples/backgrounds.html index 19d40c34..febb6bf3 100644 --- a/examples/backgrounds.html +++ b/examples/backgrounds.html @@ -89,7 +89,7 @@

Same background twice (2/2)

-
+

Video background

diff --git a/examples/preview-overlays.html b/examples/lightbox.html similarity index 100% rename from examples/preview-overlays.html rename to examples/lightbox.html diff --git a/examples/markdown.html b/examples/markdown.html index 4d69f052..885ffe83 100644 --- a/examples/markdown.html +++ b/examples/markdown.html @@ -121,7 +121,7 @@
diff --git a/examples/markdown.md b/examples/markdown.md index 1315172c..279c58a2 100644 --- a/examples/markdown.md +++ b/examples/markdown.md @@ -33,7 +33,7 @@ Content 3.2 ## External 3.3 (Image) -![External Image](https://s3.amazonaws.com/static.slid.es/logo/v2/slides-symbol-512x512.png) +![External Image](https://static.slid.es/logo/v2/slides-symbol-512x512.png) ## External 3.4 (Math) diff --git a/examples/scroll.html b/examples/scroll.html index afe7d5a0..cea39945 100644 --- a/examples/scroll.html +++ b/examples/scroll.html @@ -91,7 +91,7 @@

Image Backgrounds

-
+

Video background