slide-backgrounds.html 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  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.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. <section>
  63. <section data-background="#417203">
  64. <h2>Same background twice vertical (1/2)</h2>
  65. </section>
  66. <section data-background="#417203">
  67. <h2>Same background twice vertical (2/2)</h2>
  68. </section>
  69. </section>
  70. <section data-background="#934f4d">
  71. <h2>Same background from horizontal to vertical (1/3)</h2>
  72. </section>
  73. <section>
  74. <section data-background="#934f4d">
  75. <h2>Same background from horizontal to vertical (2/3)</h2>
  76. </section>
  77. <section data-background="#934f4d">
  78. <h2>Same background from horizontal to vertical (3/3)</h2>
  79. </section>
  80. </section>
  81. </div>
  82. </div>
  83. <script src="../../lib/js/head.min.js"></script>
  84. <script src="../../js/reveal.js"></script>
  85. <script>
  86. // Full list of configuration options available here:
  87. // https://github.com/hakimel/reveal.js#configuration
  88. Reveal.initialize({
  89. center: true,
  90. // rtl: true,
  91. transition: 'linear',
  92. // transitionSpeed: 'slow',
  93. // backgroundTransition: 'slide'
  94. });
  95. </script>
  96. </body>
  97. </html>