aboutsummaryrefslogtreecommitdiff
path: root/examples/layout-helpers.html
diff options
context:
space:
mode:
Diffstat (limited to 'examples/layout-helpers.html')
-rw-r--r--examples/layout-helpers.html41
1 files changed, 36 insertions, 5 deletions
diff --git a/examples/layout-helpers.html b/examples/layout-helpers.html
index a8375ed..4e41630 100644
--- a/examples/layout-helpers.html
+++ b/examples/layout-helpers.html
@@ -34,11 +34,15 @@
<h2>Fit Text</h2>
<p>Resizes text to be as large as possible within its container.</p>
<pre><code class="html" data-trim data-line-numbers>
- <h2 class="r-fit-text">FIT-TEXT</h2>
+ <h2 class="r-fit-text">FIT</h2>
</code></pre>
</section>
<section>
+ <h2 class="r-fit-text">FIT</h2>
+ </section>
+
+ <section>
<h2 class="r-fit-text">HELLO WORLD</h2>
<h2 class="r-fit-text">BOTH THESE TITLES USE FIT-TEXT</h2>
</section>
@@ -74,6 +78,12 @@
<section>
<h2>Stack Example</h2>
<div class="r-stack">
+ <p class="fragment fade-in-then-out">One</p>
+ <p class="fragment fade-in-then-out">Two</p>
+ <p class="fragment fade-in-then-out">Three</p>
+ <p class="fragment fade-in-then-out">Four</p>
+ </div>
+ <div class="r-stack">
<img src="https://placekitten.com/450/300" width="450" height="300" class="fragment">
<img src="https://placekitten.com/300/450" width="300" height="450" class="fragment">
<img src="https://placekitten.com/400/400" width="400" height="400" class="fragment">
@@ -82,11 +92,11 @@
<section>
<h2>Stack Example</h2>
- <p>One at a time.</p>
+ <p>fade-in-then-out fragments</p>
<div class="r-stack">
- <img src="https://placekitten.com/450/300" width="450" height="300" class="fragment fade-out" data-fragment-index="0">
- <img src="https://placekitten.com/300/450" width="300" height="450" class="fragment current-visible" data-fragment-index="0">
- <img src="https://placekitten.com/400/400" width="400" height="400" class="fragment">
+ <img src="https://placekitten.com/450/300" width="450" height="300" class="fragment fade-in-then-out">
+ <img src="https://placekitten.com/300/450" width="300" height="450" class="fragment fade-in-then-out">
+ <img src="https://placekitten.com/400/400" width="400" height="400" class="fragment fade-in-then-out">
</div>
</section>
@@ -111,6 +121,27 @@
</div>
</section>
+ <section id="vstack">
+ <h2>VStack</h2>
+ <p>Stacks multiple elements horizontally.</p>
+ <pre><code class="html" data-trim data-line-numbers>
+ <div class="r-vstack">
+ &lt;img width="450" height="300" src="..."&gt;
+ &lt;img width="300" height="450" src="..."&gt;
+ &lt;img width="400" height="400" src="..."&gt;
+ </div>
+ </code></pre>
+ </section>
+
+ <section data-auto-animate>
+ <h2>VStack Example</h2>
+ <div class="r-vstack">
+ <p style="padding: 0.50em; background: #eee; margin: 0.25em">One</p>
+ <p style="padding: 0.75em; background: #eee; margin: 0.25em">Two</p>
+ <p style="padding: 1.00em; background: #eee; margin: 0.25em">Three</p>
+ </div>
+ </section>
+
</div>
</div>