reader-mode.html 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  1. <!doctype html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <title>reveal.js - Reader Mode</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/reset.css">
  8. <link rel="stylesheet" href="../dist/reveal.css">
  9. <link rel="stylesheet" href="../dist/theme/black.css" id="theme">
  10. <link rel="stylesheet" href="../plugin/highlight/monokai.css">
  11. </head>
  12. <body>
  13. <div class="reveal">
  14. <div class="slides">
  15. <section><h1>Reader Mode</h1></section>
  16. <section data-auto-animate data-auto-animate-easing="cubic-bezier(0.770, 0.000, 0.175, 1.000)">
  17. <h2>Auto-Animate</h2>
  18. <p>Automatically animate matching elements across slides with <a href="https://revealjs.com/auto-animate/">Auto-Animate</a>.</p>
  19. <div class="r-hstack justify-center">
  20. <div data-id="box1" style="background: #999; width: 50px; height: 50px; margin: 10px; border-radius: 5px;"></div>
  21. <div data-id="box2" style="background: #999; width: 50px; height: 50px; margin: 10px; border-radius: 5px;"></div>
  22. <div data-id="box3" style="background: #999; width: 50px; height: 50px; margin: 10px; border-radius: 5px;"></div>
  23. </div>
  24. </section>
  25. <section data-auto-animate data-auto-animate-easing="cubic-bezier(0.770, 0.000, 0.175, 1.000)">
  26. <div class="r-hstack justify-center">
  27. <div data-id="box1" data-auto-animate-delay="0" style="background: cyan; width: 150px; height: 100px; margin: 10px;"></div>
  28. <div data-id="box2" data-auto-animate-delay="0.1" style="background: magenta; width: 150px; height: 100px; margin: 10px;"></div>
  29. <div data-id="box3" data-auto-animate-delay="0.2" style="background: yellow; width: 150px; height: 100px; margin: 10px;"></div>
  30. </div>
  31. <h2 style="margin-top: 20px;">Auto-Animate</h2>
  32. </section>
  33. <section data-auto-animate data-auto-animate-easing="cubic-bezier(0.770, 0.000, 0.175, 1.000)">
  34. <div class="r-stack">
  35. <div data-id="box1" style="background: cyan; width: 300px; height: 300px; border-radius: 200px;"></div>
  36. <div data-id="box2" style="background: magenta; width: 200px; height: 200px; border-radius: 200px;"></div>
  37. <div data-id="box3" style="background: yellow; width: 100px; height: 100px; border-radius: 200px;"></div>
  38. </div>
  39. <h2 style="margin-top: 20px;">Auto-Animate</h2>
  40. </section>
  41. <section data-background="indigo">
  42. <h2>Scroll triggers</h2>
  43. <ul>
  44. <li class="fragment">Fragment one</li>
  45. <li class="fragment">Fragment two</li>
  46. <li class="fragment">Fragment three</li>
  47. </ul>
  48. </section>
  49. <section data-background-gradient="linear-gradient(to bottom, #283b95, #17b2c3)" id="gradient-bg">
  50. <h2>Gradient Backgrounds</h2>
  51. </section>
  52. <section data-auto-animate>
  53. <h2 data-id="code-title">Scroll triggered code highlights</h2>
  54. <pre data-id="code-animation"><code class="hljs javascript" data-trim data-line-numbers="|4,8-11|17|22-24"><script type="text/template">
  55. import React, { useState } from 'react';
  56. function Example() {
  57. const [count, setCount] = useState(0);
  58. return (
  59. <div>
  60. <p>You clicked {count} times</p>
  61. <button onClick={() => setCount(count + 1)}>
  62. Click me
  63. </button>
  64. </div>
  65. );
  66. }
  67. function SecondExample() {
  68. const [count, setCount] = useState(0);
  69. return (
  70. <div>
  71. <p>You clicked {count} times</p>
  72. <button onClick={() => setCount(count + 1)}>
  73. Click me
  74. </button>
  75. </div>
  76. );
  77. }
  78. </script></code></pre>
  79. </section>
  80. <section class="stack">
  81. <section data-background="https://static.slid.es/reveal/image-placeholder.png" id="image-bg">
  82. <h2>Image Backgrounds</h2>
  83. <pre><code class="hljs html">&lt;section data-background="image.png"&gt;</code></pre>
  84. </section>
  85. <section data-background-video="https://s3.amazonaws.com/static.slid.es/site/homepage/v1/homepage-video-editor.mp4,https://s3.amazonaws.com/static.slid.es/site/homepage/v1/homepage-video-editor.webm">
  86. <h2>Video background</h2>
  87. </section>
  88. </section>
  89. <section><h2>The end</h2></section>
  90. </div>
  91. </div>
  92. <script src="../dist/reveal.js"></script>
  93. <script src="../plugin/notes/notes.js"></script>
  94. <script src="../plugin/markdown/markdown.js"></script>
  95. <script src="../plugin/highlight/highlight.js"></script>
  96. <script>
  97. Reveal.initialize({
  98. view: 'reader',
  99. hash: true,
  100. plugins: [ RevealMarkdown, RevealHighlight, RevealNotes ]
  101. });
  102. </script>
  103. </body>
  104. </html>