You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

116 lines
3.5KB

  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="#/stretch">Stretch</a></li>
  18. <li><a href="#/stack">Stack</a></li>
  19. <li><a href="#/hstack">HStack</a></li>
  20. <li><a href="#/vstack">VStack</a></li>
  21. </ul>
  22. </section>
  23. <section id="stretch">
  24. <h2>Stretch</h2>
  25. <p>Makes an element as tall as possible while remaining within the slide bounds.</p>
  26. <pre><code class="html" data-trim data-line-numbers>
  27. <h2>Stretch Example</h2>
  28. <img src="assets/image2.png" class="r-stretch">
  29. <p>Image byline</p>
  30. </code></pre>
  31. </section>
  32. <section>
  33. <h2>Stretch Example</h2>
  34. <img src="assets/image2.png" class="r-stretch">
  35. <p>Image byline</p>
  36. </section>
  37. <section id="stack">
  38. <h2>Stack</h2>
  39. <p>Stacks multiple elements on top of each other, for use with fragments.</p>
  40. <pre><code class="html" data-trim data-line-numbers>
  41. <div class="r-stack">
  42. &lt;img class="fragment" width="450" height="300" src="..."&gt;
  43. &lt;img class="fragment" width="300" height="450" src="..."&gt;
  44. &lt;img class="fragment" width="400" height="400" src="..."&gt;
  45. </div>
  46. </code></pre>
  47. </section>
  48. <section>
  49. <h2>Stack Example</h2>
  50. <div class="r-stack">
  51. <img src="https://placekitten.com/450/300" width="450" height="300" class="fragment">
  52. <img src="https://placekitten.com/300/450" width="300" height="450" class="fragment">
  53. <img src="https://placekitten.com/400/400" width="400" height="400" class="fragment">
  54. </div>
  55. </section>
  56. <section>
  57. <h2>Stack Example</h2>
  58. <p>One at a time.</p>
  59. <div class="r-stack">
  60. <img src="https://placekitten.com/450/300" width="450" height="300" class="fragment fade-out" data-fragment-index="0">
  61. <img src="https://placekitten.com/300/450" width="300" height="450" class="fragment current-visible" data-fragment-index="0">
  62. <img src="https://placekitten.com/400/400" width="400" height="400" class="fragment">
  63. </div>
  64. </section>
  65. <section id="hstack">
  66. <h2>HStack</h2>
  67. <p>Stacks multiple elements horizontally.</p>
  68. <pre><code class="html" data-trim data-line-numbers>
  69. <div class="r-hstack">
  70. &lt;img width="450" height="300" src="..."&gt;
  71. &lt;img width="300" height="450" src="..."&gt;
  72. &lt;img width="400" height="400" src="..."&gt;
  73. </div>
  74. </code></pre>
  75. </section>
  76. <section data-auto-animate>
  77. <h2>HStack Example</h2>
  78. <div class="r-hstack">
  79. <p style="padding: 0.50em; background: #eee; margin: 0.25em">One</p>
  80. <p style="padding: 0.75em; background: #eee; margin: 0.25em">Two</p>
  81. <p style="padding: 1.00em; background: #eee; margin: 0.25em">Three</p>
  82. </div>
  83. </section>
  84. </div>
  85. </div>
  86. <script src="../dist/reveal.js"></script>
  87. <script src="../plugin/highlight/highlight.js"></script>
  88. <script>
  89. Reveal.initialize({
  90. center: true,
  91. hash: true,
  92. plugins: [ RevealHighlight ]
  93. });
  94. </script>
  95. </body>
  96. </html>