auto-animate.html 5.3 KB

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