auto-animate.html 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  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. <link rel="stylesheet" href="../../lib/css/monokai.css">
  10. </head>
  11. <body>
  12. <div class="reveal">
  13. <div class="slides">
  14. <section data-auto-animate data-auto-animate-unmatched="fade">
  15. <h3>Auto-Animate Example</h3>
  16. <p>This will fade out</p>
  17. <img src="assets/image1.png" style="height: 100px;">
  18. <pre><code class="hljs" data-trim>
  19. function Example() {
  20. const [count, setCount] = useState(0);
  21. }
  22. </code></pre>
  23. </section>
  24. <section data-auto-animate data-auto-animate-unmatched="fade">
  25. <h3>Auto-Animate Example</h3>
  26. <p style="opacity: 0.2; margin-top: 200px;">This will fade out</p>
  27. <p>This element is unmatched</p>
  28. <img src="assets/image1.png" style="height: 100px;">
  29. <pre><code class="hljs" data-trim>
  30. function Example() {
  31. const [count, setCount] = useState(0);
  32. }
  33. </code></pre>
  34. </section>
  35. <section data-auto-animate>
  36. <p data-id="text-props" style="background: #555; line-height: 1em; letter-spacing: 0em;">Line Height & Letter Spacing</p>
  37. </section>
  38. <section data-auto-animate>
  39. <p data-id="text-props" style="background: #555; line-height: 3em; letter-spacing: 0.2em;">Line Height & Letter Spacing</p>
  40. </section>
  41. <section>
  42. <section data-auto-animate>
  43. <h3>Swapping list items</h3>
  44. <ul>
  45. <li>One</li>
  46. <li>Two</li>
  47. <li>Three</li>
  48. </ul>
  49. </section>
  50. <section data-auto-animate>
  51. <h3>Swapping list items</h3>
  52. <ul>
  53. <li>Two</li>
  54. <li>One</li>
  55. <li>Three</li>
  56. </ul>
  57. </section>
  58. <section data-auto-animate>
  59. <h3>Swapping list items</h3>
  60. <ul>
  61. <li>Two</li>
  62. <li>Three</li>
  63. <li>One</li>
  64. </ul>
  65. </section>
  66. </section>
  67. <section data-auto-animate style="height: 600px">
  68. <h3 style="opacity: 0.3; font-size: 18px;">SLIDE 1</h2>
  69. <h2 data-id="title" style="margin-top: 260px;">Animate Anything</h2>
  70. <div data-id="1" style="background: white; position: absolute; top: 150px; left: 16%; width: 60px; height: 60px;"></div>
  71. <div data-id="2" style="background: white; position: absolute; top: 150px; left: 36%; width: 60px; height: 60px;"></div>
  72. <div data-id="3" style="background: white; position: absolute; top: 150px; left: 56%; width: 60px; height: 60px;"></div>
  73. <div data-id="4" style="background: white; position: absolute; top: 150px; left: 76%; width: 60px; height: 60px;"></div>
  74. </section>
  75. <section data-auto-animate style="height: 600px">
  76. <h3 style="opacity: 0.3; font-size: 18px;">SLIDE 2</h2>
  77. <h2 data-id="title" style="margin-top: 500px">With Auto Animate</h2>
  78. <div data-id="1" style="background: cyan; position: absolute; bottom: 190px; left: 16%; width: 60px; height: 60px;"></div>
  79. <div data-id="2" style="background: magenta; position: absolute; bottom: 190px; left: 36%; width: 60px; height: 160px;"></div>
  80. <div data-id="3" style="background: yellow; position: absolute; bottom: 190px; left: 56%; width: 60px; height: 260px;"></div>
  81. <div data-id="4" style="background: red; position: absolute; bottom: 190px; left: 76%; width: 60px; height: 360px;"></div>
  82. </section>
  83. <section data-auto-animate style="height: 600px">
  84. <h3 style="opacity: 0.3; font-size: 18px;">SLIDE 3</h2>
  85. <h2 data-id="title" style="margin-top: 500px; opacity: 0;">With Auto Animate</h2>
  86. <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>
  87. <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>
  88. <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>
  89. <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>
  90. </section>
  91. <section data-auto-animate style="height: 600px">
  92. <h3 style="opacity: 0.3; font-size: 18px;">SLIDE 3</h2>
  93. <h2 data-id="title" style="margin-top: 500px; opacity: 0;">With Auto Animate</h2>
  94. <div data-id="1" style="background: red; position: absolute; top: 250px; left: 16%; width: 60px; height: 60px;"></div>
  95. <div data-id="2" style="background: yellow; position: absolute; top: 250px; left: 36%; width: 60px; height: 60px;"></div>
  96. <div data-id="3" style="background: magenta; position: absolute; top: 250px; left: 56%; width: 60px; height: 60px;"></div>
  97. <div data-id="4" style="background: cyan; position: absolute; top: 250px; left: 76%; width: 60px; height: 60px;"></div>
  98. </section>
  99. </div>
  100. </div>
  101. <script src="../../js/reveal.js"></script>
  102. <script>
  103. // Full list of configuration options available here:
  104. // https://github.com/hakimel/reveal.js#configuration
  105. Reveal.initialize({
  106. center: true,
  107. hash: true,
  108. dependencies: [
  109. { src: '../../plugin/highlight/highlight.js', async: true }
  110. ]
  111. });
  112. </script>
  113. </body>
  114. </html>