background.html 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  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. </div>
  49. </div>
  50. <script src="../lib/js/head.min.js"></script>
  51. <script src="../js/reveal.min.js"></script>
  52. <script>
  53. // Full list of configuration options available here:
  54. // https://github.com/hakimel/reveal.js#configuration
  55. Reveal.initialize({
  56. controls: true,
  57. progress: true,
  58. history: true,
  59. center: true,
  60. transition: 'linear',
  61. // transitionSpeed: 'slow',
  62. // backgroundTransition: 'linear'
  63. });
  64. </script>
  65. </body>
  66. </html>