background.html 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. <!doctype html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <title>reveal.js - Test</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="../css/reveal.min.css">
  8. <link rel="stylesheet" href="../css/theme/serif.css" id="theme">
  9. </head>
  10. <body>
  11. <div class="reveal">
  12. <div class="slides">
  13. <section data-background="#00ffff">
  14. <h2>data-background: #00ff00</h2>
  15. </section>
  16. <section data-background="#0000ff">
  17. <h2>data-background: #0000ff</h2>
  18. </section>
  19. <section>
  20. <section data-background="#ff0000">
  21. <h2>data-background: #ff0000</h2>
  22. </section>
  23. <section data-background="rgba(0, 0, 0, 0.2)">
  24. <h2>data-background: rgba(0, 0, 0, 0.2)</h2>
  25. </section>
  26. <section data-background="salmon">
  27. <h2>data-background: salmon</h2>
  28. </section>
  29. </section>
  30. <section data-background="rgba(0, 100, 100, 0.2)">
  31. <section>
  32. <h2>Background applied to stack</h2>
  33. </section>
  34. <section>
  35. <h2>Background applied to stack</h2>
  36. </section>
  37. <section data-background="rgba(100, 0, 0, 0.2)">
  38. <h2>Background applied to slide inside of stack</h2>
  39. </section>
  40. </section>
  41. <section data-background="assets/image1.png">
  42. <h2>Background image</h2>
  43. </section>
  44. <section data-background="assets/image2.png">
  45. <h2>Background image</h2>
  46. </section>
  47. </div>
  48. </div>
  49. <script src="../lib/js/head.min.js"></script>
  50. <script src="../js/reveal.min.js"></script>
  51. <script>
  52. // Full list of configuration options available here:
  53. // https://github.com/hakimel/reveal.js#configuration
  54. Reveal.initialize({
  55. controls: true,
  56. progress: true,
  57. history: true,
  58. center: true
  59. });
  60. </script>
  61. </body>
  62. </html>