layout-helpers.html 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  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="../lib/css/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. </ul>
  20. </section>
  21. <section id="stretch">
  22. <h2>Stretch</h2>
  23. <p>Makes an element as tall as possible while remaining within the slide bounds.</p>
  24. <pre><code class="html" data-trim data-line-numbers>
  25. <h2>Stretch Example</h2>
  26. <img src="assets/image2.png" class="r-stretch">
  27. <p>Image byline</p>
  28. </code></pre>
  29. </section>
  30. <section>
  31. <h2>Stretch Example</h2>
  32. <img src="assets/image2.png" class="r-stretch">
  33. <p>Image byline</p>
  34. </section>
  35. <section id="stack">
  36. <h2>Stack</h2>
  37. <p>Stacks multiple elements on top of each other, for use with fragments.</p>
  38. <pre><code class="html" data-trim data-line-numbers>
  39. <div class="r-stack">
  40. &gt;img class="fragment" width="450" height="300" src="..."&lt;
  41. &lt;img class="fragment" width="300" height="450" src="..."&lt;
  42. &lt;img class="fragment" width="400" height="400" src="..."&lt;
  43. </div>
  44. </code></pre>
  45. </section>
  46. <section>
  47. <h2>Stack Example</h2>
  48. <div class="r-stack">
  49. <img src="https://placekitten.com/450/300" width="450" height="300" class="fragment">
  50. <img src="https://placekitten.com/300/450" width="300" height="450" class="fragment">
  51. <img src="https://placekitten.com/400/400" width="400" height="400" class="fragment">
  52. </div>
  53. </section>
  54. <section>
  55. <h2>Stack Example</h2>
  56. <p>One at a time.</p>
  57. <div class="r-stack">
  58. <img src="https://placekitten.com/450/300" width="450" height="300" class="fragment fade-out" data-fragment-index="0">
  59. <img src="https://placekitten.com/300/450" width="300" height="450" class="fragment current-visible" data-fragment-index="0">
  60. <img src="https://placekitten.com/400/400" width="400" height="400" class="fragment">
  61. </div>
  62. </section>
  63. </div>
  64. </div>
  65. <script src="../dist/reveal.js"></script>
  66. <script src="../dist/plugin/highlight.js"></script>
  67. <script>
  68. Reveal.initialize({
  69. center: true,
  70. hash: true,
  71. plugins: [ RevealHighlight ]
  72. });
  73. </script>
  74. </body>
  75. </html>