slide-backgrounds.html 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  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. <style type="text/css" media="screen">
  10. .slides section,
  11. .slides section h2 {
  12. color: #fff;
  13. }
  14. .slides section.has-light-background,
  15. .slides section.has-light-background h2 {
  16. color: #222;
  17. }
  18. </style>
  19. </head>
  20. <body>
  21. <div class="reveal">
  22. <div class="slides">
  23. <section data-background="#00ffff">
  24. <h2>data-background: #00ffff</h2>
  25. </section>
  26. <section data-background="#bb00bb">
  27. <h2>data-background: #bb00bb</h2>
  28. </section>
  29. <section data-background-color="lightblue">
  30. <h2>data-background: lightblue</h2>
  31. </section>
  32. <section>
  33. <section data-background="#ff0000">
  34. <h2>data-background: #ff0000</h2>
  35. </section>
  36. <section data-background="rgba(0, 0, 0, 0.2)">
  37. <h2>data-background: rgba(0, 0, 0, 0.2)</h2>
  38. </section>
  39. <section data-background="salmon">
  40. <h2>data-background: salmon</h2>
  41. </section>
  42. </section>
  43. <section data-background="rgba(0, 100, 100, 0.2)">
  44. <section>
  45. <h2>Background applied to stack</h2>
  46. </section>
  47. <section>
  48. <h2>Background applied to stack</h2>
  49. </section>
  50. <section data-background="rgb(66, 66, 66)">
  51. <h2>Background applied to slide inside of stack</h2>
  52. </section>
  53. </section>
  54. <section data-background-transition="slide" data-background="assets/image1.png" style="background: rgba(0,0,0,0.9)">
  55. <h2>Background image</h2>
  56. </section>
  57. <section>
  58. <section data-background-transition="slide" data-background="assets/image1.png" style="background: rgba(0,0,0,0.9)">
  59. <h2>Background image</h2>
  60. </section>
  61. <section data-background-transition="slide" data-background="assets/image1.png" style="background: rgba(0,0,0,0.9)">
  62. <h2>Background image</h2>
  63. </section>
  64. </section>
  65. <section data-background="assets/image2.png" data-background-size="100px" data-background-repeat="repeat" data-background-color="#111" style="background: rgba(0,0,0,0.9)">
  66. <h2>Background image</h2>
  67. <pre>data-background-size="100px" data-background-repeat="repeat" data-background-color="#111"</pre>
  68. </section>
  69. <section data-background="#888888">
  70. <h2>Same background twice (1/2)</h2>
  71. </section>
  72. <section data-background="#888888">
  73. <h2>Same background twice (2/2)</h2>
  74. </section>
  75. <section>
  76. <section data-background="#417203">
  77. <h2>Same background twice vertical (1/2)</h2>
  78. </section>
  79. <section data-background="#417203">
  80. <h2>Same background twice vertical (2/2)</h2>
  81. </section>
  82. </section>
  83. <section data-background="#934f4d">
  84. <h2>Same background from horizontal to vertical (1/3)</h2>
  85. </section>
  86. <section>
  87. <section data-background="#934f4d">
  88. <h2>Same background from horizontal to vertical (2/3)</h2>
  89. </section>
  90. <section data-background="#934f4d">
  91. <h2>Same background from horizontal to vertical (3/3)</h2>
  92. </section>
  93. </section>
  94. </div>
  95. </div>
  96. <script src="../../lib/js/head.min.js"></script>
  97. <script src="../../js/reveal.js"></script>
  98. <script>
  99. // Full list of configuration options available here:
  100. // https://github.com/hakimel/reveal.js#configuration
  101. Reveal.initialize({
  102. center: true,
  103. // rtl: true,
  104. transition: 'linear',
  105. // transitionSpeed: 'slow',
  106. // backgroundTransition: 'slide'
  107. });
  108. </script>
  109. </body>
  110. </html>