background.html 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. <!doctype html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <title>reveal.js - Test</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.min.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="assets/image1.png" style="background: rgba(255,255,255,0.9)">
  42. <h2>Background image</h2>
  43. </section>
  44. <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)">
  45. <h2>Background image</h2>
  46. <pre>data-background-size="100px" data-background-repeat="repeat" data-background-color="#111"</pre>
  47. </section>
  48. <section data-background="#888888">
  49. <h2>Same background twice (1/2)</h2>
  50. </section>
  51. <section data-background="#888888">
  52. <h2>Same background twice (2/2)</h2>
  53. </section>
  54. </div>
  55. </div>
  56. <script src="../lib/js/head.min.js"></script>
  57. <script src="../js/reveal.min.js"></script>
  58. <script>
  59. // Full list of configuration options available here:
  60. // https://github.com/hakimel/reveal.js#configuration
  61. Reveal.initialize({
  62. controls: true,
  63. progress: true,
  64. history: true,
  65. center: true,
  66. // rtl: true,
  67. transition: 'linear',
  68. // transitionSpeed: 'slow',
  69. // backgroundTransition: 'linear'
  70. });
  71. </script>
  72. </body>
  73. </html>