slide-backgrounds.html 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145
  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.has-dark-background,
  11. .slides section.has-dark-background 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">
  55. <h2>Background image</h2>
  56. </section>
  57. <section>
  58. <section data-background-transition="slide" data-background="assets/image1.png">
  59. <h2>Background image</h2>
  60. </section>
  61. <section data-background-transition="slide" data-background="assets/image1.png">
  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">
  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 data-background-video="https://s3.amazonaws.com/static.slid.es/site/homepage/v1/homepage-video-editor.mp4,https://s3.amazonaws.com/static.slid.es/site/homepage/v1/homepage-video-editor.webm">
  76. <h2>Video background</h2>
  77. </section>
  78. <section data-background-iframe="https://slides.com">
  79. <h2>Iframe background</h2>
  80. </section>
  81. <section>
  82. <section data-background="#417203">
  83. <h2>Same background twice vertical (1/2)</h2>
  84. </section>
  85. <section data-background="#417203">
  86. <h2>Same background twice vertical (2/2)</h2>
  87. </section>
  88. </section>
  89. <section data-background="#934f4d">
  90. <h2>Same background from horizontal to vertical (1/3)</h2>
  91. </section>
  92. <section>
  93. <section data-background="#934f4d">
  94. <h2>Same background from horizontal to vertical (2/3)</h2>
  95. </section>
  96. <section data-background="#934f4d">
  97. <h2>Same background from horizontal to vertical (3/3)</h2>
  98. </section>
  99. </section>
  100. </div>
  101. </div>
  102. <script src="../../lib/js/head.min.js"></script>
  103. <script src="../../js/reveal.js"></script>
  104. <script>
  105. // Full list of configuration options available here:
  106. // https://github.com/hakimel/reveal.js#configuration
  107. Reveal.initialize({
  108. center: true,
  109. // rtl: true,
  110. transition: 'linear',
  111. // transitionSpeed: 'slow',
  112. // backgroundTransition: 'slide'
  113. });
  114. </script>
  115. </body>
  116. </html>