auto-animate.html 4.2 KB

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