auto-animate.html 4.6 KB

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