auto-animate.html 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  1. <!doctype html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <title>reveal.js - Auto Animate</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/black.css" id="theme">
  9. </head>
  10. <body>
  11. <div class="reveal">
  12. <div class="slides">
  13. <section data-auto-animate>
  14. <h3>Auto-Matched Content (no IDs)</h3>
  15. <h3>This will fade out</h3>
  16. <img src="assets/image1.png">
  17. </section>
  18. <section data-auto-animate>
  19. <h3>Auto-Matched Content (no IDs)</h3>
  20. <h3 style="opacity: 0.2; margin-top: 200px;">This will fade out</h3>
  21. <img src="assets/image1.png">
  22. </section>
  23. <section data-auto-animate>
  24. <h3 data-id="text-props" style="background: #555; line-height: 1em; letter-spacing: 0em;">Text props</h3>
  25. </section>
  26. <section data-auto-animate>
  27. <h3 data-id="text-props" style="background: #555; line-height: 3em; letter-spacing: 0.2em;">Text props</h3>
  28. </section>
  29. <section data-auto-animate>
  30. <h3>Swapping list items</h3>
  31. <ul>
  32. <li>One</li>
  33. <li>Two</li>
  34. <li>Three</li>
  35. </ul>
  36. </section>
  37. <section data-auto-animate>
  38. <h3>Swapping list items</h3>
  39. <ul>
  40. <li>Two</li>
  41. <li>One</li>
  42. <li>Three</li>
  43. </ul>
  44. </section>
  45. <section data-auto-animate>
  46. <h3>Swapping list items</h3>
  47. <ul>
  48. <li>Two</li>
  49. <li>Three</li>
  50. <li>One</li>
  51. </ul>
  52. </section>
  53. <section data-auto-animate style="height: 600px">
  54. <h3 style="opacity: 0.3; font-size: 18px;">SLIDE 1</h2>
  55. <h2 data-id="title" style="margin-top: 260px;">Animate Anything</h2>
  56. <div data-id="1" style="background: white; position: absolute; top: 150px; left: 16%; width: 60px; height: 60px;"></div>
  57. <div data-id="2" style="background: white; position: absolute; top: 150px; left: 36%; width: 60px; height: 60px;"></div>
  58. <div data-id="3" style="background: white; position: absolute; top: 150px; left: 56%; width: 60px; height: 60px;"></div>
  59. <div data-id="4" style="background: white; position: absolute; top: 150px; left: 76%; width: 60px; height: 60px;"></div>
  60. <!-- <p data-id="2" style="margin-top: 200px; border: 2px solid #999;">Text</p> -->
  61. </section>
  62. <section data-auto-animate style="height: 600px">
  63. <h3 style="opacity: 0.3; font-size: 18px;">SLIDE 2</h2>
  64. <h2 data-id="title" style="margin-top: 500px">With Auto Animate</h2>
  65. <div data-id="1" style="background: cyan; position: absolute; bottom: 190px; left: 16%; width: 60px; height: 60px;"></div>
  66. <div data-id="2" style="background: magenta; position: absolute; bottom: 190px; left: 36%; width: 60px; height: 160px;"></div>
  67. <div data-id="3" style="background: yellow; position: absolute; bottom: 190px; left: 56%; width: 60px; height: 260px;"></div>
  68. <div data-id="4" style="background: red; position: absolute; bottom: 190px; left: 76%; width: 60px; height: 360px;"></div>
  69. <!-- <p data-id="2" style="margin-top: 200px; border: 2px solid #999; width: 50%;">Text</p> -->
  70. </section>
  71. <section data-auto-animate style="height: 600px">
  72. <h3 style="opacity: 0.3; font-size: 18px;">SLIDE 3</h2>
  73. <h2 data-id="title" style="margin-top: 500px; opacity: 0;">With Auto Animate</h2>
  74. <div data-id="1" style="background: cyan; position: absolute; top: 50%; left: 50%; width: 400px; height: 400px; margin: -200px 0 0 -200px; border-radius: 400px;"></div>
  75. <div data-id="2" style="background: magenta; position: absolute; top: 50%; left: 50%; width: 300px; height: 300px; margin: -150px 0 0 -150px; border-radius: 400px;"></div>
  76. <div data-id="3" style="background: yellow; position: absolute; top: 50%; left: 50%; width: 200px; height: 200px; margin: -100px 0 0 -100px; border-radius: 400px;"></div>
  77. <div data-id="4" style="background: red; position: absolute; top: 50%; left: 50%; width: 100px; height: 100px; margin: -50px 0 0 -50px; border-radius: 400px;"></div>
  78. <!-- <p data-id="2" style="margin-top: 200px; border: 2px solid #999;">Text</p> -->
  79. </section>
  80. <section data-auto-animate style="height: 600px">
  81. <h3 style="opacity: 0.3; font-size: 18px;">SLIDE 3</h2>
  82. <h2 data-id="title" style="margin-top: 500px; opacity: 0;">With Auto Animate</h2>
  83. <div data-id="1" style="background: red; position: absolute; top: 250px; left: 16%; width: 60px; height: 60px;"></div>
  84. <div data-id="2" style="background: yellow; position: absolute; top: 250px; left: 36%; width: 60px; height: 60px;"></div>
  85. <div data-id="3" style="background: magenta; position: absolute; top: 250px; left: 56%; width: 60px; height: 60px;"></div>
  86. <div data-id="4" style="background: cyan; position: absolute; top: 250px; left: 76%; width: 60px; height: 60px;"></div>
  87. <!-- <p data-id="2" style="margin-top: 200px; border: 2px solid #999;">Text</p> -->
  88. </section>
  89. </div>
  90. </div>
  91. <script src="../../js/reveal.js"></script>
  92. <script>
  93. // Full list of configuration options available here:
  94. // https://github.com/hakimel/reveal.js#configuration
  95. Reveal.initialize({
  96. center: true,
  97. hash: true
  98. });
  99. </script>
  100. </body>
  101. </html>