slide-backgrounds.html 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. <!doctype html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <title>reveal.js - Slide Backgrounds</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: #00ffff</h2>
  15. </section>
  16. <section data-background="#bb00bb">
  17. <h2>data-background: #bb00bb</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-transition="slide" data-background="assets/image1.png" style="background: rgba(255,255,255,0.9)">
  42. <h2>Background image</h2>
  43. </section>
  44. <section>
  45. <section data-background-transition="slide" data-background="assets/image1.png" style="background: rgba(255,255,255,0.9)">
  46. <h2>Background image</h2>
  47. </section>
  48. <section data-background-transition="slide" data-background="assets/image1.png" style="background: rgba(255,255,255,0.9)">
  49. <h2>Background image</h2>
  50. </section>
  51. </section>
  52. <section data-background="assets/image2.png" data-background-size="100px" data-background-repeat="repeat" data-background-color="#111" style="background: rgba(255,255,255,0.9)">
  53. <h2>Background image</h2>
  54. <pre>data-background-size="100px" data-background-repeat="repeat" data-background-color="#111"</pre>
  55. </section>
  56. <section data-background="#888888">
  57. <h2>Same background twice (1/2)</h2>
  58. </section>
  59. <section data-background="#888888">
  60. <h2>Same background twice (2/2)</h2>
  61. </section>
  62. </div>
  63. </div>
  64. <script src="../../lib/js/head.min.js"></script>
  65. <script src="../../js/reveal.min.js"></script>
  66. <script>
  67. // Full list of configuration options available here:
  68. // https://github.com/hakimel/reveal.js#configuration
  69. Reveal.initialize({
  70. center: true,
  71. // rtl: true,
  72. transition: 'linear',
  73. // transitionSpeed: 'slow',
  74. // backgroundTransition: 'linear'
  75. });
  76. </script>
  77. </body>
  78. </html>