1
0

backgrounds.html 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8" />
  5. <title>reveal.js - Slide Backgrounds</title>
  6. <meta
  7. name="viewport"
  8. content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"
  9. />
  10. <link rel="stylesheet" href="../dist/reveal.css" />
  11. <link rel="stylesheet" href="../dist/theme/serif.css" id="theme" />
  12. <style type="text/css" media="screen">
  13. .slides section.has-dark-background,
  14. .slides section.has-dark-background h2 {
  15. color: #fff;
  16. }
  17. .slides section.has-light-background,
  18. .slides section.has-light-background h2 {
  19. color: #222;
  20. }
  21. </style>
  22. </head>
  23. <body>
  24. <div class="reveal">
  25. <div class="slides">
  26. <section data-background="#00ffff">
  27. <h2>data-background: #00ffff</h2>
  28. </section>
  29. <section data-background="#bb00bb">
  30. <h2>data-background: #bb00bb</h2>
  31. </section>
  32. <section data-background-color="lightblue">
  33. <h2>data-background: lightblue</h2>
  34. </section>
  35. <section>
  36. <section data-background="#ff0000">
  37. <h2>data-background: #ff0000</h2>
  38. </section>
  39. <section data-background="rgba(0, 0, 0, 0.2)">
  40. <h2>data-background: rgba(0, 0, 0, 0.2)</h2>
  41. </section>
  42. <section data-background="salmon">
  43. <h2>data-background: salmon</h2>
  44. </section>
  45. </section>
  46. <section data-background="rgba(0, 100, 100, 0.2)">
  47. <section>
  48. <h2>Background applied to stack</h2>
  49. </section>
  50. <section>
  51. <h2>Background applied to stack</h2>
  52. </section>
  53. <section data-background="rgb(66, 66, 66)">
  54. <h2>Background applied to slide inside of stack</h2>
  55. </section>
  56. </section>
  57. <section data-background-transition="slide" data-background="assets/image1.png">
  58. <h2>Background image</h2>
  59. </section>
  60. <section>
  61. <section data-background-transition="slide" data-background="assets/image1.png">
  62. <h2>Background image</h2>
  63. </section>
  64. <section data-background-transition="slide" data-background="assets/image1.png">
  65. <h2>Background image</h2>
  66. </section>
  67. </section>
  68. <section
  69. data-background="assets/image2.png"
  70. data-background-size="100px"
  71. data-background-repeat="repeat"
  72. data-background-color="#111"
  73. >
  74. <h2>Background image</h2>
  75. <pre>
  76. data-background-size="100px" data-background-repeat="repeat" data-background-color="#111"</pre
  77. >
  78. </section>
  79. <section data-background="#888888">
  80. <h2>Same background twice (1/2)</h2>
  81. </section>
  82. <section data-background="#888888">
  83. <h2>Same background twice (2/2)</h2>
  84. </section>
  85. <section data-background-video="https://static.slid.es/site/homepage/v1/homepage-video-editor.mp4,https://static.slid.es/site/homepage/v1/homepage-video-editor.webm">
  86. <h2>Video background</h2>
  87. </section>
  88. <section
  89. data-background-iframe="https://slides.com/news/make-better-presentations/embed?style=hidden&autoSlide=4000"
  90. >
  91. <h2>Iframe background</h2>
  92. </section>
  93. <section>
  94. <section data-background="#417203">
  95. <h2>Same background twice vertical (1/2)</h2>
  96. </section>
  97. <section data-background="#417203">
  98. <h2>Same background twice vertical (2/2)</h2>
  99. </section>
  100. </section>
  101. <section data-background="#934f4d">
  102. <h2>Same background from horizontal to vertical (1/3)</h2>
  103. </section>
  104. <section>
  105. <section data-background="#934f4d">
  106. <h2>Same background from horizontal to vertical (2/3)</h2>
  107. </section>
  108. <section data-background="#934f4d">
  109. <h2>Same background from horizontal to vertical (3/3)</h2>
  110. </section>
  111. </section>
  112. </div>
  113. </div>
  114. <script src="../dist/reveal.js"></script>
  115. <script>
  116. // Full list of configuration options:
  117. // https://revealjs.revealjs.com/config/
  118. Reveal.initialize({
  119. center: true,
  120. transition: 'linear',
  121. // transitionSpeed: 'slow',
  122. // backgroundTransition: 'slide'
  123. });
  124. </script>
  125. </body>
  126. </html>