| 1 | <!DOCTYPE html> |
| 2 | <html lang="en"> |
| 3 | <head> |
| 4 | <meta charset="utf-8" /> |
| 5 | |
| 6 | <title>reveal.js - Layout Helpers</title> |
| 7 | |
| 8 | <meta |
| 9 | name="viewport" |
| 10 | content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" |
| 11 | /> |
| 12 | |
| 13 | <link rel="stylesheet" href="../dist/reveal.css" /> |
| 14 | <link rel="stylesheet" href="../dist/theme/white.css" id="theme" /> |
| 15 | <link rel="stylesheet" href="../dist/plugin/highlight/monokai.css" /> |
| 16 | </head> |
| 17 | |
| 18 | <body> |
| 19 | <div class="reveal"> |
| 20 | <div class="slides"> |
| 21 | <section> |
| 22 | <h2>Layout Helper Examples</h2> |
| 23 | <ul> |
| 24 | <li><a href="#/fit-text">Big Text</a></li> |
| 25 | <li><a href="#/stretch">Stretch</a></li> |
| 26 | <li><a href="#/stack">Stack</a></li> |
| 27 | <li><a href="#/hstack">HStack</a></li> |
| 28 | <li><a href="#/vstack">VStack</a></li> |
| 29 | </ul> |
| 30 | </section> |
| 31 | |
| 32 | <section id="fit-text"> |
| 33 | <h2>Fit Text</h2> |
| 34 | <p>Resizes text to be as large as possible within its container.</p> |
| 35 | <pre><code class="html" data-trim data-line-numbers> |
| 36 | <h2 class="r-fit-text">FIT</h2> |
| 37 | </code></pre> |
| 38 | </section> |
| 39 | |
| 40 | <section> |
| 41 | <h2 class="r-fit-text">FIT</h2> |
| 42 | </section> |
| 43 | |
| 44 | <section> |
| 45 | <h2 class="r-fit-text">HELLO WORLD</h2> |
| 46 | <h2 class="r-fit-text">BOTH THESE TITLES USE FIT-TEXT</h2> |
| 47 | </section> |
| 48 | |
| 49 | <section id="stretch"> |
| 50 | <h2>Stretch</h2> |
| 51 | <p>Makes an element as tall as possible while remaining within the slide bounds.</p> |
| 52 | <pre><code class="html" data-trim data-line-numbers> |
| 53 | <h2>Stretch Example</h2> |
| 54 | <img src="assets/image2.png" class="r-stretch"> |
| 55 | <p>Image byline</p> |
| 56 | </code></pre> |
| 57 | </section> |
| 58 | |
| 59 | <section> |
| 60 | <h2>Stretch Example</h2> |
| 61 | <img src="assets/image2.png" class="r-stretch" /> |
| 62 | <p>Image byline</p> |
| 63 | </section> |
| 64 | |
| 65 | <section id="stack"> |
| 66 | <h2>Stack</h2> |
| 67 | <p>Stacks multiple elements on top of each other, for use with fragments.</p> |
| 68 | <pre><code class="html" data-trim data-line-numbers> |
| 69 | <div class="r-stack"> |
| 70 | <img class="fragment" width="450" height="300" src="..."> |
| 71 | <img class="fragment" width="300" height="450" src="..."> |
| 72 | <img class="fragment" width="400" height="400" src="..."> |
| 73 | </div> |
| 74 | </code></pre> |
| 75 | </section> |
| 76 | |
| 77 | <section> |
| 78 | <h2>Stack Example</h2> |
| 79 | <div class="r-stack"> |
| 80 | <p class="fragment fade-in-then-out">One</p> |
| 81 | <p class="fragment fade-in-then-out">Two</p> |
| 82 | <p class="fragment fade-in-then-out">Three</p> |
| 83 | <p class="fragment fade-in-then-out">Four</p> |
| 84 | </div> |
| 85 | <div class="r-stack"> |
| 86 | <img src="https://placecats.com/450/300" width="450" height="300" class="fragment" /> |
| 87 | <img src="https://placecats.com/300/450" width="300" height="450" class="fragment" /> |
| 88 | <img src="https://placecats.com/400/400" width="400" height="400" class="fragment" /> |
| 89 | </div> |
| 90 | </section> |
| 91 | |
| 92 | <section> |
| 93 | <h2>Stack Example</h2> |
| 94 | <p>fade-in-then-out fragments</p> |
| 95 | <div class="r-stack"> |
| 96 | <img |
| 97 | src="https://placecats.com/450/300" |
| 98 | width="450" |
| 99 | height="300" |
| 100 | class="fragment fade-in-then-out" |
| 101 | /> |
| 102 | <img |
| 103 | src="https://placecats.com/300/450" |
| 104 | width="300" |
| 105 | height="450" |
| 106 | class="fragment fade-in-then-out" |
| 107 | /> |
| 108 | <img |
| 109 | src="https://placecats.com/400/400" |
| 110 | width="400" |
| 111 | height="400" |
| 112 | class="fragment fade-in-then-out" |
| 113 | /> |
| 114 | </div> |
| 115 | </section> |
| 116 | |
| 117 | <section id="hstack"> |
| 118 | <h2>HStack</h2> |
| 119 | <p>Stacks multiple elements horizontally.</p> |
| 120 | <pre><code class="html" data-trim data-line-numbers> |
| 121 | <div class="r-hstack"> |
| 122 | <img width="450" height="300" src="..."> |
| 123 | <img width="300" height="450" src="..."> |
| 124 | <img width="400" height="400" src="..."> |
| 125 | </div> |
| 126 | </code></pre> |
| 127 | </section> |
| 128 | |
| 129 | <section data-auto-animate> |
| 130 | <h2>HStack Example</h2> |
| 131 | <div class="r-hstack"> |
| 132 | <p style="padding: 0.5em; background: #eee; margin: 0.25em">One</p> |
| 133 | <p style="padding: 0.75em; background: #eee; margin: 0.25em">Two</p> |
| 134 | <p style="padding: 1em; background: #eee; margin: 0.25em">Three</p> |
| 135 | </div> |
| 136 | </section> |
| 137 | |
| 138 | <section id="vstack"> |
| 139 | <h2>VStack</h2> |
| 140 | <p>Stacks multiple elements vertically.</p> |
| 141 | <pre><code class="html" data-trim data-line-numbers> |
| 142 | <div class="r-vstack"> |
| 143 | <img width="450" height="300" src="..."> |
| 144 | <img width="300" height="450" src="..."> |
| 145 | <img width="400" height="400" src="..."> |
| 146 | </div> |
| 147 | </code></pre> |
| 148 | </section> |
| 149 | |
| 150 | <section data-auto-animate> |
| 151 | <h2>VStack Example</h2> |
| 152 | <div class="r-vstack"> |
| 153 | <p style="padding: 0.5em; background: #eee; margin: 0.25em">One</p> |
| 154 | <p style="padding: 0.75em; background: #eee; margin: 0.25em">Two</p> |
| 155 | <p style="padding: 1em; background: #eee; margin: 0.25em">Three</p> |
| 156 | </div> |
| 157 | </section> |
| 158 | </div> |
| 159 | </div> |
| 160 | |
| 161 | <script src="../dist/reveal.js"></script> |
| 162 | <script src="../dist/plugin/highlight.js"></script> |
| 163 | <script> |
| 164 | Reveal.initialize({ |
| 165 | center: true, |
| 166 | hash: true, |
| 167 | plugins: [RevealHighlight], |
| 168 | }); |
| 169 | </script> |
| 170 | </body> |
| 171 | </html> |
| 172 |