|
@@ -197,6 +197,25 @@
|
|
|
</script>
|
|
|
</section>
|
|
|
|
|
|
+ <section>
|
|
|
+ <h2>Lightbox</h2>
|
|
|
+ Turn any element into a <a href="https://revealjs.com/lightbox/">lightbox</a> using <strong>data‑preview‑image</strong> & <strong>data‑preview‑video</strong>.
|
|
|
+ <div class="r-hstack" style="gap: 2rem;">
|
|
|
+ <div>
|
|
|
+ <pre style="font-size: 12px; width: 100%"><code class="html" data-trim>
|
|
|
+ <img src="image.png" data-preview-image="image.png">
|
|
|
+ </code></pre>
|
|
|
+ <img src="https://static.slid.es/logo/v2/slides-symbol-1024x1024.png" height="100" data-preview-image>
|
|
|
+ </div>
|
|
|
+ <div>
|
|
|
+ <pre style="font-size: 12px; width: 100%"><code class="html" data-trim>
|
|
|
+ <img src="video.png" data-preview-video="video.mp4">
|
|
|
+ </code></pre>
|
|
|
+ <img src="https://static.slid.es/site/homepage/v1/homepage-video-editor.png" height="100" data-preview-video="https://static.slid.es/site/homepage/v1/homepage-video-editor.mp4">
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </section>
|
|
|
+
|
|
|
<section>
|
|
|
<p>Add the <code>r-fit-text</code> class to auto-size text</p>
|
|
|
<h2 class="r-fit-text">FIT TEXT</h2>
|