| 1 | <!doctype html> |
| 2 | <html lang="en"> |
| 3 | |
| 4 | <head> |
| 5 | <meta charset="utf-8"> |
| 6 | |
| 7 | <title>reveal.js - Ligthbox</title> |
| 8 | |
| 9 | <link rel="stylesheet" href="../dist/reveal.css"> |
| 10 | <link rel="stylesheet" href="../dist/theme/black.css" id="theme"> |
| 11 | |
| 12 | <style> |
| 13 | .reveal { |
| 14 | font-size: 24px; |
| 15 | } |
| 16 | .reveal figure { |
| 17 | margin: 0 0 1rem 0; |
| 18 | text-align: left; |
| 19 | } |
| 20 | .reveal figure img, |
| 21 | .reveal figure video { |
| 22 | margin: 0.25rem 0 0 0; |
| 23 | } |
| 24 | figcaption, a { |
| 25 | font-size: 16px; |
| 26 | } |
| 27 | </style> |
| 28 | </head> |
| 29 | |
| 30 | <body> |
| 31 | |
| 32 | <div class="reveal"> |
| 33 | |
| 34 | <div class="slides"> |
| 35 | |
| 36 | <section> |
| 37 | |
| 38 | <h2>Preview Overlays</h2> |
| 39 | |
| 40 | <div class="r-hstack items-start"> |
| 41 | <div class="r-vstack items-start"> |
| 42 | <h5>Images</h5> |
| 43 | <figure> |
| 44 | <figcaption>Preview with default settings:</figcaption> |
| 45 | <img height="50" src="https://static.slid.es/images/alphabet/v1/a.png" data-preview-image> |
| 46 | </figure> |
| 47 | <figure> |
| 48 | <figcaption>Preview with data-preview-fit="contain"</figcaption> |
| 49 | <img height="50" src="https://static.slid.es/images/alphabet/v1/a.png" data-preview-image data-preview-fit="contain"> |
| 50 | </figure> |
| 51 | <figure> |
| 52 | <figcaption>Preview with data-preview-fit="cover"</figcaption> |
| 53 | <img height="50" src="https://static.slid.es/images/alphabet/v1/a.png" data-preview-image data-preview-fit="cover"> |
| 54 | </figure> |
| 55 | <figure> |
| 56 | <figcaption>Preview another image (c)</figcaption> |
| 57 | <img height="50" src="https://static.slid.es/images/alphabet/v1/b.png" data-preview-image="https://static.slid.es/images/alphabet/v1/c.png"> |
| 58 | </figure> |
| 59 | <a href="#" data-preview-image="https://static.slid.es/images/alphabet/v1/x.png"> |
| 60 | Preview image from a link. |
| 61 | </a> |
| 62 | </div> |
| 63 | |
| 64 | <div style="width: 1px; height: 30vh; margin: 0 3rem;background-color: #999;"></div> |
| 65 | |
| 66 | <div class="r-vstack items-start"> |
| 67 | <h5>Videos</h5> |
| 68 | <figure> |
| 69 | <figcaption>Preview video</figcaption> |
| 70 | <img height="50" src="https://static.slid.es/images/alphabet/v1/x.png" data-preview-video="https://static.slid.es/site/homepage/v1/homepage-video-editor.mp4"> |
| 71 | </figure> |
| 72 | <figure> |
| 73 | <figcaption>Preview video</figcaption> |
| 74 | <video height="50" src="https://static.slid.es/site/homepage/v1/homepage-video-editor.mp4" data-preview-video></video> |
| 75 | </figure> |
| 76 | <a href="#" data-preview-video="https://static.slid.es/site/homepage/v1/homepage-video-editor.mp4"> |
| 77 | Preview video from a link. |
| 78 | </a> |
| 79 | </div> |
| 80 | |
| 81 | <div style="width: 1px; height: 30vh; margin: 0 3rem;background-color: #999;"></div> |
| 82 | |
| 83 | <div class="r-vstack items-start"> |
| 84 | <h5>Iframes</h5> |
| 85 | <a href="https://hakim.se">https://hakim.se</a> |
| 86 | <a data-preview-link href="https://hakim.se">https://hakim.se | data-preview-link</a> |
| 87 | <br /> |
| 88 | <a data-preview-link="false" href="https://hakim.se">https://hakim.se | data-preview-link=false</a> |
| 89 | <br /> |
| 90 | <figure> |
| 91 | <figcaption>Preview link from an image</figcaption> |
| 92 | <img height="50" src="https://static.slid.es/images/alphabet/v1/a.png" data-preview-link="https://hakim.se"> |
| 93 | </figure> |
| 94 | </div> |
| 95 | </div> |
| 96 | |
| 97 | </section> |
| 98 | |
| 99 | <section style="text-align: left;"> |
| 100 | |
| 101 | <h2>Lightbox</h2> |
| 102 | |
| 103 | <div class="r-hstack items-start justify-start"> |
| 104 | <div class="r-vstack items-start"> |
| 105 | <h5>Images</h5> |
| 106 | <figure> |
| 107 | <img height="100" src="https://static.slid.es/images/alphabet/v1/a.png" data-preview-image data-preview-fit="contain"> |
| 108 | </figure> |
| 109 | </div> |
| 110 | |
| 111 | <div style="width: 1px; height: 20vh; margin: 0 3rem;background-color: #222;"></div> |
| 112 | |
| 113 | <div class="r-vstack items-start"> |
| 114 | <h5>Videos</h5> |
| 115 | <figure> |
| 116 | <video height="100" src="https://static.slid.es/site/homepage/v1/homepage-video-editor.mp4" data-preview-video></video> |
| 117 | </figure> |
| 118 | </div> |
| 119 | |
| 120 | <div style="width: 1px; height: 20vh; margin: 0 3rem;background-color: #222;"></div> |
| 121 | |
| 122 | <div class="r-vstack items-start"> |
| 123 | <h5>Iframes</h5> |
| 124 | <a style="font-size: 28px;" data-preview-link href="https://hakim.se">https://hakim.se</a> |
| 125 | </div> |
| 126 | </div> |
| 127 | |
| 128 | </section> |
| 129 | |
| 130 | </div> |
| 131 | |
| 132 | </div> |
| 133 | |
| 134 | <script src="../dist/reveal.js"></script> |
| 135 | <script> |
| 136 | Reveal.initialize({ |
| 137 | previewLinks: false, |
| 138 | width: 1280, |
| 139 | height: 720 |
| 140 | }); |
| 141 | </script> |
| 142 | |
| 143 | </body> |
| 144 | </html> |
| 145 |