layout-helpers.html 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  1. <!doctype html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <title>reveal.js - Layout Helpers</title>
  6. <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
  7. <link rel="stylesheet" href="../dist/reveal.css">
  8. <link rel="stylesheet" href="../dist/theme/white.css" id="theme">
  9. <link rel="stylesheet" href="../plugin/highlight/monokai.css">
  10. </head>
  11. <body>
  12. <div class="reveal">
  13. <div class="slides">
  14. <section>
  15. <h2>Layout Helper Examples</h2>
  16. <ul>
  17. <li><a href="#/fit-text">Big Text</a></li>
  18. <li><a href="#/stretch">Stretch</a></li>
  19. <li><a href="#/stack">Stack</a></li>
  20. <li><a href="#/hstack">HStack</a></li>
  21. <li><a href="#/vstack">VStack</a></li>
  22. </ul>
  23. </section>
  24. <section id="fit-text">
  25. <h2>Fit Text</h2>
  26. <p>Resizes text to be as large as possible within its container.</p>
  27. <pre><code class="html" data-trim data-line-numbers>
  28. <h2 class="r-fit-text">FIT-TEXT</h2>
  29. </code></pre>
  30. </section>
  31. <section>
  32. <h2 class="r-fit-text">HELLO WORLD</h2>
  33. <h2 class="r-fit-text">BOTH THESE TITLES USE FIT-TEXT</h2>
  34. </section>
  35. <section id="stretch">
  36. <h2>Stretch</h2>
  37. <p>Makes an element as tall as possible while remaining within the slide bounds.</p>
  38. <pre><code class="html" data-trim data-line-numbers>
  39. <h2>Stretch Example</h2>
  40. <img src="assets/image2.png" class="r-stretch">
  41. <p>Image byline</p>
  42. </code></pre>
  43. </section>
  44. <section>
  45. <h2>Stretch Example</h2>
  46. <img src="assets/image2.png" class="r-stretch">
  47. <p>Image byline</p>
  48. </section>
  49. <section id="stack">
  50. <h2>Stack</h2>
  51. <p>Stacks multiple elements on top of each other, for use with fragments.</p>
  52. <pre><code class="html" data-trim data-line-numbers>
  53. <div class="r-stack">
  54. &lt;img class="fragment" width="450" height="300" src="..."&gt;
  55. &lt;img class="fragment" width="300" height="450" src="..."&gt;
  56. &lt;img class="fragment" width="400" height="400" src="..."&gt;
  57. </div>
  58. </code></pre>
  59. </section>
  60. <section>
  61. <h2>Stack Example</h2>
  62. <div class="r-stack">
  63. <img src="https://placekitten.com/450/300" width="450" height="300" class="fragment">
  64. <img src="https://placekitten.com/300/450" width="300" height="450" class="fragment">
  65. <img src="https://placekitten.com/400/400" width="400" height="400" class="fragment">
  66. </div>
  67. </section>
  68. <section>
  69. <h2>Stack Example</h2>
  70. <p>One at a time.</p>
  71. <div class="r-stack">
  72. <img src="https://placekitten.com/450/300" width="450" height="300" class="fragment fade-out" data-fragment-index="0">
  73. <img src="https://placekitten.com/300/450" width="300" height="450" class="fragment current-visible" data-fragment-index="0">
  74. <img src="https://placekitten.com/400/400" width="400" height="400" class="fragment">
  75. </div>
  76. </section>
  77. <section id="hstack">
  78. <h2>HStack</h2>
  79. <p>Stacks multiple elements horizontally.</p>
  80. <pre><code class="html" data-trim data-line-numbers>
  81. <div class="r-hstack">
  82. &lt;img width="450" height="300" src="..."&gt;
  83. &lt;img width="300" height="450" src="..."&gt;
  84. &lt;img width="400" height="400" src="..."&gt;
  85. </div>
  86. </code></pre>
  87. </section>
  88. <section data-auto-animate>
  89. <h2>HStack Example</h2>
  90. <div class="r-hstack">
  91. <p style="padding: 0.50em; background: #eee; margin: 0.25em">One</p>
  92. <p style="padding: 0.75em; background: #eee; margin: 0.25em">Two</p>
  93. <p style="padding: 1.00em; background: #eee; margin: 0.25em">Three</p>
  94. </div>
  95. </section>
  96. </div>
  97. </div>
  98. <script src="../dist/reveal.js"></script>
  99. <script src="../plugin/highlight/highlight.js"></script>
  100. <script>
  101. Reveal.initialize({
  102. center: true,
  103. hash: true,
  104. plugins: [ RevealHighlight ]
  105. });
  106. </script>
  107. </body>
  108. </html>