|
@@ -31,9 +31,9 @@
|
|
|
</section>
|
|
|
<section data-auto-animate data-auto-animate-unmatched="fade">
|
|
|
<h3>Auto-Animate Example</h3>
|
|
|
- <p style="opacity: 0.2; margin-top: 200px;">This will fade out</p>
|
|
|
+ <p style="opacity: 0.2; margin-top: 100px;">This will fade out</p>
|
|
|
<p>This element is unmatched</p>
|
|
|
- <img src="assets/image1.png" style="height: 100px;">
|
|
|
+ <img src="assets/image1.png" style="height: 150px;">
|
|
|
<pre data-id="code"><code data-line-numbers class="hljs" data-trim>
|
|
|
function Example() {
|
|
|
New line!
|
|
@@ -49,34 +49,53 @@
|
|
|
<p data-id="text-props" style="background: #555; line-height: 3em; letter-spacing: 0.2em;">Line Height & Letter Spacing</p>
|
|
|
</section>
|
|
|
|
|
|
- <section data-auto-animate>
|
|
|
- <pre data-id="code"><code data-line-numbers class="hljs" data-trim>
|
|
|
- import React, { useState } from 'react';
|
|
|
-
|
|
|
- function Example() {
|
|
|
- const [count, setCount] = useState(0);
|
|
|
+ <section>
|
|
|
+ <section data-auto-animate>
|
|
|
+ <pre data-id="code"><code data-line-numbers class="hljs" data-trim>
|
|
|
+ import React, { useState } from 'react';
|
|
|
|
|
|
- return (
|
|
|
- ...
|
|
|
- );
|
|
|
- }
|
|
|
- </code></pre>
|
|
|
- </section>
|
|
|
- <section data-auto-animate>
|
|
|
- <pre data-id="code"><code data-line-numbers class="hljs" data-trim>
|
|
|
- function Example() {
|
|
|
- const [count, setCount] = useState(0);
|
|
|
+ function Example() {
|
|
|
+ const [count, setCount] = useState(0);
|
|
|
|
|
|
- return (
|
|
|
- <div>
|
|
|
- <p>You clicked {count} times</p>
|
|
|
- <button onClick={() => setCount(count + 1)}>
|
|
|
- Click me
|
|
|
- </button>
|
|
|
- </div>
|
|
|
- );
|
|
|
- }
|
|
|
- </code></pre>
|
|
|
+ return (
|
|
|
+ ...
|
|
|
+ );
|
|
|
+ }
|
|
|
+ </code></pre>
|
|
|
+ </section>
|
|
|
+ <section data-auto-animate>
|
|
|
+ <pre data-id="code"><code data-line-numbers class="hljs" data-trim>
|
|
|
+ function Example() {
|
|
|
+ const [count, setCount] = useState(0);
|
|
|
+
|
|
|
+ return (
|
|
|
+ <div>
|
|
|
+ <p>You clicked {count} times</p>
|
|
|
+ <button onClick={() => setCount(count + 1)}>
|
|
|
+ Click me
|
|
|
+ </button>
|
|
|
+ </div>
|
|
|
+ );
|
|
|
+ }
|
|
|
+ </code></pre>
|
|
|
+ </section>
|
|
|
+ <section data-auto-animate>
|
|
|
+ <pre data-id="code"><code data-line-numbers class="hljs" data-trim>
|
|
|
+ function Example() {
|
|
|
+ // A comment!
|
|
|
+ const [count, setCount] = useState(0);
|
|
|
+
|
|
|
+ return (
|
|
|
+ <div>
|
|
|
+ <p>You clicked {count} times</p>
|
|
|
+ <button onClick={() => setCount(count + 1)}>
|
|
|
+ Click me
|
|
|
+ </button>
|
|
|
+ </div>
|
|
|
+ );
|
|
|
+ }
|
|
|
+ </code></pre>
|
|
|
+ </section>
|
|
|
</section>
|
|
|
|
|
|
<section>
|