slide-backgrounds.html 3.6 KB

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