demo.html 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462
  1. <!doctype html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <title>reveal.js – The HTML Presentation Framework</title>
  6. <meta name="description" content="A framework for easily creating beautiful presentations using HTML">
  7. <meta name="author" content="Hakim El Hattab">
  8. <meta name="apple-mobile-web-app-capable" content="yes">
  9. <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
  10. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  11. <link rel="stylesheet" href="dist/reset.css">
  12. <link rel="stylesheet" href="dist/reveal.css">
  13. <link rel="stylesheet" href="dist/theme/black.css" id="theme">
  14. <!-- Theme used for syntax highlighting of code -->
  15. <link rel="stylesheet" href="plugin/highlight/monokai.css" id="highlight-theme">
  16. </head>
  17. <body>
  18. <div class="reveal">
  19. <!-- Any section element inside of this container is displayed as a slide -->
  20. <div class="slides">
  21. <section>
  22. <h1>Reveal.js</h1>
  23. <h3>The HTML Presentation Framework</h3>
  24. <p>
  25. <small>Created by <a href="http://hakim.se">Hakim El Hattab</a> and <a href="https://github.com/hakimel/reveal.js/graphs/contributors">contributors</a></small>
  26. </p>
  27. </section>
  28. <section>
  29. <h2>Hello There</h2>
  30. <p>
  31. reveal.js enables you to create beautiful interactive slide decks using HTML. This presentation will show you examples of what it can do.
  32. </p>
  33. </section>
  34. <!-- Example of nested vertical slides -->
  35. <section>
  36. <section>
  37. <h2>Vertical Slides</h2>
  38. <p>Slides can be nested inside of each other.</p>
  39. <p>Use the <em>Space</em> key to navigate through all slides.</p>
  40. <br>
  41. <a href="#" class="navigate-down">
  42. <img class="r-frame" style="background: rgba(255,255,255,0.1);" width="178" height="238" data-src="https://s3.amazonaws.com/hakim-static/reveal-js/arrow.png" alt="Down arrow">
  43. </a>
  44. </section>
  45. <section>
  46. <h2>Basement Level 1</h2>
  47. <p>Nested slides are useful for adding additional detail underneath a high level horizontal slide.</p>
  48. </section>
  49. <section>
  50. <h2>Basement Level 2</h2>
  51. <p>That's it, time to go back up.</p>
  52. <br>
  53. <a href="#/2">
  54. <img class="r-frame" style="background: rgba(255,255,255,0.1); transform: rotate(180deg);" width="178" height="238" data-src="https://s3.amazonaws.com/hakim-static/reveal-js/arrow.png" alt="Up arrow">
  55. </a>
  56. </section>
  57. </section>
  58. <section>
  59. <h2>Slides</h2>
  60. <p>
  61. Not a coder? Not a problem. There's a fully-featured visual editor for authoring these, try it out at <a href="https://slides.com" target="_blank">https://slides.com</a>.
  62. </p>
  63. </section>
  64. <section data-auto-animate>
  65. <h2 data-id="code-title">Pretty Code</h2>
  66. <pre data-id="code-animation"><code class="hljs" data-trim data-line-numbers>
  67. import React, { useState } from 'react';
  68. function Example() {
  69. const [count, setCount] = useState(0);
  70. return (
  71. ...
  72. );
  73. }
  74. </code></pre>
  75. <p>Code syntax highlighting courtesy of <a href="https://highlightjs.org/usage/">highlight.js</a>.</p>
  76. </section>
  77. <section data-auto-animate>
  78. <h2 data-id="code-title">With animations</h2>
  79. <pre data-id="code-animation"><code class="hljs" data-trim data-line-numbers="|4,8-11|17|22-24">
  80. import React, { useState } from 'react';
  81. function Example() {
  82. const [count, setCount] = useState(0);
  83. return (
  84. &lt;div&gt;
  85. &lt;p&gt;You clicked {count} times&lt;/p&gt;
  86. &lt;button onClick={() =&gt; setCount(count + 1)}&gt;
  87. Click me
  88. &lt;/button&gt;
  89. &lt;/div&gt;
  90. );
  91. }
  92. function SecondExample() {
  93. const [count, setCount] = useState(0);
  94. return (
  95. &lt;div&gt;
  96. &lt;p&gt;You clicked {count} times&lt;/p&gt;
  97. &lt;button onClick={() =&gt; setCount(count + 1)}&gt;
  98. Click me
  99. &lt;/button&gt;
  100. &lt;/div&gt;
  101. );
  102. }
  103. </code></pre>
  104. </section>
  105. <section>
  106. <h2>Point of View</h2>
  107. <p>
  108. Press <strong>ESC</strong> to enter the slide overview.
  109. </p>
  110. <p>
  111. Hold down the <strong>alt</strong> key (<strong>ctrl</strong> in Linux) and click on any element to zoom towards it using <a href="http://lab.hakim.se/zoom-js">zoom.js</a>. Click again to zoom back out.
  112. </p>
  113. <p>
  114. (NOTE: Use ctrl + click in Linux.)
  115. </p>
  116. </section>
  117. <section data-auto-animate data-auto-animate-easing="cubic-bezier(0.770, 0.000, 0.175, 1.000)">
  118. <h2>Auto-Animate</h2>
  119. <p>Automatically animate matching elements across slides with <a href="https://revealjs.com/auto-animate/">Auto-Animate</a>.</p>
  120. <div class="r-hstack justify-center">
  121. <div data-id="box1" style="background: #999; width: 50px; height: 50px; margin: 10px; border-radius: 5px;"></div>
  122. <div data-id="box2" style="background: #999; width: 50px; height: 50px; margin: 10px; border-radius: 5px;"></div>
  123. <div data-id="box3" style="background: #999; width: 50px; height: 50px; margin: 10px; border-radius: 5px;"></div>
  124. </div>
  125. </section>
  126. <section data-auto-animate data-auto-animate-easing="cubic-bezier(0.770, 0.000, 0.175, 1.000)">
  127. <div class="r-hstack justify-center">
  128. <div data-id="box1" data-auto-animate-delay="0" style="background: cyan; width: 150px; height: 100px; margin: 10px;"></div>
  129. <div data-id="box2" data-auto-animate-delay="0.1" style="background: magenta; width: 150px; height: 100px; margin: 10px;"></div>
  130. <div data-id="box3" data-auto-animate-delay="0.2" style="background: yellow; width: 150px; height: 100px; margin: 10px;"></div>
  131. </div>
  132. <h2 style="margin-top: 20px;">Auto-Animate</h2>
  133. </section>
  134. <section data-auto-animate data-auto-animate-easing="cubic-bezier(0.770, 0.000, 0.175, 1.000)">
  135. <div class="r-stack">
  136. <div data-id="box1" style="background: cyan; width: 300px; height: 300px; border-radius: 200px;"></div>
  137. <div data-id="box2" style="background: magenta; width: 200px; height: 200px; border-radius: 200px;"></div>
  138. <div data-id="box3" style="background: yellow; width: 100px; height: 100px; border-radius: 200px;"></div>
  139. </div>
  140. <h2 style="margin-top: 20px;">Auto-Animate</h2>
  141. </section>
  142. <section>
  143. <h2>Touch Optimized</h2>
  144. <p>
  145. Presentations look great on touch devices, like mobile phones and tablets. Simply swipe through your slides.
  146. </p>
  147. </section>
  148. <section data-markdown>
  149. <script type="text/template">
  150. ## Markdown support
  151. Write content using inline or external Markdown.
  152. Instructions and more info available in the [readme](https://revealjs.com/markdown/).
  153. ```[]
  154. <section data-markdown>
  155. ## Markdown support
  156. Write content using inline or external Markdown.
  157. Instructions and more info available in the [readme](https://revealjs.com/markdown/).
  158. </section>
  159. ```
  160. </script>
  161. </section>
  162. <section>
  163. <section id="fragments">
  164. <h2>Fragments</h2>
  165. <p>Hit the next arrow...</p>
  166. <p class="fragment">... to step through ...</p>
  167. <p><span class="fragment">... a</span> <span class="fragment">fragmented</span> <span class="fragment">slide.</span></p>
  168. <aside class="notes">
  169. This slide has fragments which are also stepped through in the notes window.
  170. </aside>
  171. </section>
  172. <section>
  173. <h2>Fragment Styles</h2>
  174. <p>There's different types of fragments, like:</p>
  175. <p class="fragment grow">grow</p>
  176. <p class="fragment shrink">shrink</p>
  177. <p class="fragment fade-out">fade-out</p>
  178. <p>
  179. <span style="display: inline-block;" class="fragment fade-right">fade-right, </span>
  180. <span style="display: inline-block;" class="fragment fade-up">up, </span>
  181. <span style="display: inline-block;" class="fragment fade-down">down, </span>
  182. <span style="display: inline-block;" class="fragment fade-left">left</span>
  183. </p>
  184. <p class="fragment fade-in-then-out">fade-in-then-out</p>
  185. <p class="fragment fade-in-then-semi-out">fade-in-then-semi-out</p>
  186. <p>Highlight <span class="fragment highlight-red">red</span> <span class="fragment highlight-blue">blue</span> <span class="fragment highlight-green">green</span></p>
  187. </section>
  188. </section>
  189. <section id="transitions">
  190. <h2>Transition Styles</h2>
  191. <p>
  192. You can select from different transitions, like: <br>
  193. <a href="?transition=none#/transitions">None</a> -
  194. <a href="?transition=fade#/transitions">Fade</a> -
  195. <a href="?transition=slide#/transitions">Slide</a> -
  196. <a href="?transition=convex#/transitions">Convex</a> -
  197. <a href="?transition=concave#/transitions">Concave</a> -
  198. <a href="?transition=zoom#/transitions">Zoom</a>
  199. </p>
  200. </section>
  201. <section id="themes">
  202. <h2>Themes</h2>
  203. <p>
  204. reveal.js comes with a few themes built in: <br>
  205. <!-- Hacks to swap themes after the page has loaded. Not flexible and only intended for the reveal.js demo deck. -->
  206. <a href="#" onclick="document.getElementById('theme').setAttribute('href','css/theme/black.css'); return false;">Black (default)</a> -
  207. <a href="#" onclick="document.getElementById('theme').setAttribute('href','css/theme/white.css'); return false;">White</a> -
  208. <a href="#" onclick="document.getElementById('theme').setAttribute('href','css/theme/league.css'); return false;">League</a> -
  209. <a href="#" onclick="document.getElementById('theme').setAttribute('href','css/theme/sky.css'); return false;">Sky</a> -
  210. <a href="#" onclick="document.getElementById('theme').setAttribute('href','css/theme/beige.css'); return false;">Beige</a> -
  211. <a href="#" onclick="document.getElementById('theme').setAttribute('href','css/theme/simple.css'); return false;">Simple</a> <br>
  212. <a href="#" onclick="document.getElementById('theme').setAttribute('href','css/theme/serif.css'); return false;">Serif</a> -
  213. <a href="#" onclick="document.getElementById('theme').setAttribute('href','css/theme/blood.css'); return false;">Blood</a> -
  214. <a href="#" onclick="document.getElementById('theme').setAttribute('href','css/theme/night.css'); return false;">Night</a> -
  215. <a href="#" onclick="document.getElementById('theme').setAttribute('href','css/theme/moon.css'); return false;">Moon</a> -
  216. <a href="#" onclick="document.getElementById('theme').setAttribute('href','css/theme/solarized.css'); return false;">Solarized</a>
  217. </p>
  218. </section>
  219. <section>
  220. <section data-background="#dddddd">
  221. <h2>Slide Backgrounds</h2>
  222. <p>
  223. Set <code>data-background="#dddddd"</code> on a slide to change the background color. All CSS color formats are supported.
  224. </p>
  225. <a href="#" class="navigate-down">
  226. <img class="r-frame" style="background: rgba(255,255,255,0.1);" width="178" height="238" data-src="https://s3.amazonaws.com/hakim-static/reveal-js/arrow.png" alt="Down arrow">
  227. </a>
  228. </section>
  229. <section data-background="https://s3.amazonaws.com/hakim-static/reveal-js/image-placeholder.png">
  230. <h2>Image Backgrounds</h2>
  231. <pre><code class="hljs html">&lt;section data-background="image.png"&gt;</code></pre>
  232. </section>
  233. <section data-background="https://s3.amazonaws.com/hakim-static/reveal-js/image-placeholder.png" data-background-repeat="repeat" data-background-size="100px">
  234. <h2>Tiled Backgrounds</h2>
  235. <pre><code class="hljs html" style="word-wrap: break-word;">&lt;section data-background="image.png" data-background-repeat="repeat" data-background-size="100px"&gt;</code></pre>
  236. </section>
  237. <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" data-background-color="#000000">
  238. <div style="background-color: rgba(0, 0, 0, 0.9); color: #fff; padding: 20px;">
  239. <h2>Video Backgrounds</h2>
  240. <pre><code class="hljs html" style="word-wrap: break-word;">&lt;section data-background-video="video.mp4,video.webm"&gt;</code></pre>
  241. </div>
  242. </section>
  243. <section data-background="http://i.giphy.com/90F8aUepslB84.gif">
  244. <h2>... and GIFs!</h2>
  245. </section>
  246. </section>
  247. <section data-transition="slide" data-background="#4d7e65" data-background-transition="zoom">
  248. <h2>Background Transitions</h2>
  249. <p>
  250. Different background transitions are available via the backgroundTransition option. This one's called "zoom".
  251. </p>
  252. <pre><code class="hljs javascript">Reveal.configure({ backgroundTransition: 'zoom' })</code></pre>
  253. </section>
  254. <section data-transition="slide" data-background="#b5533c" data-background-transition="zoom">
  255. <h2>Background Transitions</h2>
  256. <p>
  257. You can override background transitions per-slide.
  258. </p>
  259. <pre><code class="hljs html" style="word-wrap: break-word;">&lt;section data-background-transition="zoom"&gt;</code></pre>
  260. </section>
  261. <section data-background-iframe="https://hakim.se" data-background-interactive>
  262. <div style="position: absolute; width: 40%; right: 0; box-shadow: 0 1px 4px rgba(0,0,0,0.5), 0 5px 25px rgba(0,0,0,0.2); background-color: rgba(0, 0, 0, 0.9); color: #fff; padding: 20px; font-size: 20px; text-align: left;">
  263. <h2>Iframe Backgrounds</h2>
  264. <p>Since reveal.js runs on the web, you can easily embed other web content. Try interacting with the page in the background.</p>
  265. </div>
  266. </section>
  267. <section>
  268. <h2>Marvelous List</h2>
  269. <ul>
  270. <li>No order here</li>
  271. <li>Or here</li>
  272. <li>Or here</li>
  273. <li>Or here</li>
  274. </ul>
  275. </section>
  276. <section>
  277. <h2>Fantastic Ordered List</h2>
  278. <ol>
  279. <li>One is smaller than...</li>
  280. <li>Two is smaller than...</li>
  281. <li>Three!</li>
  282. </ol>
  283. </section>
  284. <section>
  285. <h2>Tabular Tables</h2>
  286. <table>
  287. <thead>
  288. <tr>
  289. <th>Item</th>
  290. <th>Value</th>
  291. <th>Quantity</th>
  292. </tr>
  293. </thead>
  294. <tbody>
  295. <tr>
  296. <td>Apples</td>
  297. <td>$1</td>
  298. <td>7</td>
  299. </tr>
  300. <tr>
  301. <td>Lemonade</td>
  302. <td>$2</td>
  303. <td>18</td>
  304. </tr>
  305. <tr>
  306. <td>Bread</td>
  307. <td>$3</td>
  308. <td>2</td>
  309. </tr>
  310. </tbody>
  311. </table>
  312. </section>
  313. <section>
  314. <h2>Clever Quotes</h2>
  315. <p>
  316. These guys come in two forms, inline: <q cite="http://searchservervirtualization.techtarget.com/definition/Our-Favorite-Technology-Quotations">The nice thing about standards is that there are so many to choose from</q> and block:
  317. </p>
  318. <blockquote cite="http://searchservervirtualization.techtarget.com/definition/Our-Favorite-Technology-Quotations">
  319. &ldquo;For years there has been a theory that millions of monkeys typing at random on millions of typewriters would
  320. reproduce the entire works of Shakespeare. The Internet has proven this theory to be untrue.&rdquo;
  321. </blockquote>
  322. </section>
  323. <section>
  324. <h2>Intergalactic Interconnections</h2>
  325. <p>
  326. You can link between slides internally,
  327. <a href="#/2/3">like this</a>.
  328. </p>
  329. </section>
  330. <section>
  331. <h2>Speaker View</h2>
  332. <p>There's a <a href="https://revealjs.com/speaker-view/">speaker view</a>. It includes a timer, preview of the upcoming slide as well as your speaker notes.</p>
  333. <p>Press the <em>S</em> key to try it out.</p>
  334. <aside class="notes">
  335. Oh hey, these are some notes. They'll be hidden in your presentation, but you can see them if you open the speaker notes window (hit 's' on your keyboard).
  336. </aside>
  337. </section>
  338. <section>
  339. <h2>Export to PDF</h2>
  340. <p>Presentations can be <a href="https://revealjs.com/pdf-export/">exported to PDF</a>, here's an example:</p>
  341. <iframe data-src="https://www.slideshare.net/slideshow/embed_code/42840540" width="445" height="355" frameborder="0" marginwidth="0" marginheight="0" scrolling="no" style="border:3px solid #666; margin-bottom:5px; max-width: 100%;" allowfullscreen> </iframe>
  342. </section>
  343. <section>
  344. <h2>Global State</h2>
  345. <p>
  346. Set <code>data-state="something"</code> on a slide and <code>"something"</code>
  347. will be added as a class to the document element when the slide is open. This lets you
  348. apply broader style changes, like switching the page background.
  349. </p>
  350. </section>
  351. <section data-state="customevent">
  352. <h2>State Events</h2>
  353. <p>
  354. Additionally custom events can be triggered on a per slide basis by binding to the <code>data-state</code> name.
  355. </p>
  356. <pre><code class="javascript" data-trim contenteditable style="font-size: 18px;">
  357. Reveal.on( 'customevent', function() {
  358. console.log( '"customevent" has fired' );
  359. } );
  360. </code></pre>
  361. </section>
  362. <section>
  363. <h2>Take a Moment</h2>
  364. <p>
  365. Press B or . on your keyboard to pause the presentation. This is helpful when you're on stage and want to take distracting slides off the screen.
  366. </p>
  367. </section>
  368. <section>
  369. <h2>Much more</h2>
  370. <ul>
  371. <li>Right-to-left support</li>
  372. <li><a href="https://revealjs.com/api/">Extensive JavaScript API</a></li>
  373. <li><a href="https://revealjs.com/auto-slide/">Auto-progression</a></li>
  374. <li><a href="https://revealjs.com/backgrounds/#parallax-background">Parallax backgrounds</a></li>
  375. <li><a href="https://revealjs.com/keyboard/">Custom keyboard bindings</a></li>
  376. </ul>
  377. </section>
  378. <section style="text-align: left;">
  379. <h1>THE END</h1>
  380. <p>
  381. - <a href="https://slides.com">Try the online editor</a> <br>
  382. - <a href="https://github.com/hakimel/reveal.js">Source code &amp; documentation</a>
  383. </p>
  384. </section>
  385. </div>
  386. </div>
  387. <script src="dist/reveal.js"></script>
  388. <script src="plugin/zoom/zoom.js"></script>
  389. <script src="plugin/notes/notes.js"></script>
  390. <script src="plugin/search/search.js"></script>
  391. <script src="plugin/markdown/markdown.js"></script>
  392. <script src="plugin/highlight/highlight.js"></script>
  393. <script>
  394. // Also available as an ES module, see:
  395. // https://revealjs.com/initialization/
  396. Reveal.initialize({
  397. controls: true,
  398. progress: true,
  399. center: true,
  400. hash: true,
  401. // Learn about plugins: https://revealjs.com/plugins/
  402. plugins: [ RevealZoom, RevealNotes, RevealSearch, RevealMarkdown, RevealHighlight ]
  403. });
  404. </script>
  405. </body>
  406. </html>