aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorHakim El Hattab <hakim.elhattab@gmail.com>2020-04-16 16:04:26 +0200
committerHakim El Hattab <hakim.elhattab@gmail.com>2020-04-16 16:04:26 +0200
commit561c3ff4437ed334cbce66e279d17a3b11be7c38 (patch)
tree7c5dd6b921e21086d64baf9697d75cc8ecd4512f /examples
parent7b151c232074fbab53bbb53efb35bccf332352b5 (diff)
downloadfosdem-2021-minimalism-presentation-561c3ff4437ed334cbce66e279d17a3b11be7c38.tar
fosdem-2021-minimalism-presentation-561c3ff4437ed334cbce66e279d17a3b11be7c38.tar.gz
update presentation examples move to root @ /examples
Diffstat (limited to 'examples')
-rw-r--r--examples/assets/beeping.txt2
-rw-r--r--examples/assets/beeping.wavbin0 -> 422472 bytes
-rw-r--r--examples/assets/image1.pngbin0 -> 21991 bytes
-rw-r--r--examples/assets/image2.pngbin0 -> 10237 bytes
-rw-r--r--examples/auto-animate.html175
-rw-r--r--examples/barebones.html38
-rw-r--r--examples/math.html202
-rw-r--r--examples/media.html56
-rw-r--r--examples/multiple-instances.html53
-rw-r--r--examples/slide-backgrounds.html141
-rw-r--r--examples/slide-transitions.html97
11 files changed, 764 insertions, 0 deletions
diff --git a/examples/assets/beeping.txt b/examples/assets/beeping.txt
new file mode 100644
index 0000000..bf41997
--- /dev/null
+++ b/examples/assets/beeping.txt
@@ -0,0 +1,2 @@
+Source: https://freesound.org/people/fennelliott/sounds/379419/
+License: CC0 (public domain) \ No newline at end of file
diff --git a/examples/assets/beeping.wav b/examples/assets/beeping.wav
new file mode 100644
index 0000000..38747a5
--- /dev/null
+++ b/examples/assets/beeping.wav
Binary files differ
diff --git a/examples/assets/image1.png b/examples/assets/image1.png
new file mode 100644
index 0000000..8747594
--- /dev/null
+++ b/examples/assets/image1.png
Binary files differ
diff --git a/examples/assets/image2.png b/examples/assets/image2.png
new file mode 100644
index 0000000..6c403a0
--- /dev/null
+++ b/examples/assets/image2.png
Binary files differ
diff --git a/examples/auto-animate.html b/examples/auto-animate.html
new file mode 100644
index 0000000..0ebf3cc
--- /dev/null
+++ b/examples/auto-animate.html
@@ -0,0 +1,175 @@
+<!doctype html>
+<html lang="en">
+
+ <head>
+ <meta charset="utf-8">
+
+ <title>reveal.js - Auto Animate</title>
+
+ <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
+
+ <link rel="stylesheet" href="../dist/reveal.css">
+ <link rel="stylesheet" href="../dist/theme/black.css" id="theme">
+ <link rel="stylesheet" href="../lib/css/monokai.css">
+ </head>
+
+ <body>
+
+ <div class="reveal">
+
+ <div class="slides">
+
+ <section data-auto-animate data-auto-animate-unmatched="fade">
+ <h3>Auto-Animate Example</h3>
+ <p>This will fade out</p>
+ <img src="assets/image1.png" style="height: 100px;">
+ <pre data-id="code"><code data-line-numbers class="hljs" data-trim>
+ function Example() {
+ const [count, setCount] = useState(0);
+ }
+ </code></pre>
+ </section>
+ <section data-auto-animate data-auto-animate-unmatched="fade">
+ <h3>Auto-Animate Example</h3>
+ <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: 150px;">
+ <pre data-id="code"><code data-line-numbers class="hljs" data-trim>
+ function Example() {
+ New line!
+ const [count, setCount] = useState(0);
+ }
+ </code></pre>
+ </section>
+
+ <section data-auto-animate>
+ <p data-id="text-props" style="background: #555; line-height: 1em; letter-spacing: 0em;">Line Height & Letter Spacing</p>
+ </section>
+ <section data-auto-animate>
+ <p data-id="text-props" style="background: #555; line-height: 3em; letter-spacing: 0.2em;">Line Height & Letter Spacing</p>
+ </section>
+
+ <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);
+
+ 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 (
+ &lt;div&gt;
+ &lt;p&gt;You clicked {count} times&lt;/p&gt;
+ &lt;button onClick={() =&gt; setCount(count + 1)}&gt;
+ Click me
+ &lt;/button&gt;
+ &lt;/div&gt;
+ );
+ }
+ </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 (
+ &lt;div&gt;
+ &lt;p&gt;You clicked {count} times&lt;/p&gt;
+ &lt;button onClick={() =&gt; setCount(count + 1)}&gt;
+ Click me
+ &lt;/button&gt;
+ &lt;/div&gt;
+ );
+ }
+ </code></pre>
+ </section>
+ </section>
+
+ <section>
+ <section data-auto-animate>
+ <h3>Swapping list items</h3>
+ <ul>
+ <li>One</li>
+ <li>Two</li>
+ <li>Three</li>
+ </ul>
+ </section>
+ <section data-auto-animate>
+ <h3>Swapping list items</h3>
+ <ul>
+ <li>Two</li>
+ <li>One</li>
+ <li>Three</li>
+ </ul>
+ </section>
+ <section data-auto-animate>
+ <h3>Swapping list items</h3>
+ <ul>
+ <li>Two</li>
+ <li>Three</li>
+ <li>One</li>
+ </ul>
+ </section>
+ </section>
+
+ <section data-auto-animate style="height: 600px">
+ <h3 style="opacity: 0.3; font-size: 18px;">SLIDE 1</h2>
+ <h2 data-id="title" style="margin-top: 260px;">Animate Anything</h2>
+ <div data-id="1" style="background: white; position: absolute; top: 150px; left: 16%; width: 60px; height: 60px;"></div>
+ <div data-id="2" style="background: white; position: absolute; top: 150px; left: 36%; width: 60px; height: 60px;"></div>
+ <div data-id="3" style="background: white; position: absolute; top: 150px; left: 56%; width: 60px; height: 60px;"></div>
+ <div data-id="4" style="background: white; position: absolute; top: 150px; left: 76%; width: 60px; height: 60px;"></div>
+ </section>
+ <section data-auto-animate style="height: 600px">
+ <h3 style="opacity: 0.3; font-size: 18px;">SLIDE 2</h2>
+ <h2 data-id="title" style="margin-top: 500px">With Auto Animate</h2>
+ <div data-id="1" style="background: cyan; position: absolute; bottom: 190px; left: 16%; width: 60px; height: 60px;"></div>
+ <div data-id="2" style="background: magenta; position: absolute; bottom: 190px; left: 36%; width: 60px; height: 160px;"></div>
+ <div data-id="3" style="background: yellow; position: absolute; bottom: 190px; left: 56%; width: 60px; height: 260px;"></div>
+ <div data-id="4" style="background: red; position: absolute; bottom: 190px; left: 76%; width: 60px; height: 360px;"></div>
+ </section>
+ <section data-auto-animate style="height: 600px">
+ <h3 style="opacity: 0.3; font-size: 18px;">SLIDE 3</h2>
+ <h2 data-id="title" style="margin-top: 500px; opacity: 0;">With Auto Animate</h2>
+ <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>
+ <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>
+ <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>
+ <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>
+ </section>
+ <section data-auto-animate style="height: 600px">
+ <h3 style="opacity: 0.3; font-size: 18px;">SLIDE 3</h2>
+ <h2 data-id="title" style="margin-top: 500px; opacity: 0;">With Auto Animate</h2>
+ <div data-id="1" style="background: red; position: absolute; top: 250px; left: 16%; width: 60px; height: 60px;"></div>
+ <div data-id="2" style="background: yellow; position: absolute; top: 250px; left: 36%; width: 60px; height: 60px;"></div>
+ <div data-id="3" style="background: magenta; position: absolute; top: 250px; left: 56%; width: 60px; height: 60px;"></div>
+ <div data-id="4" style="background: cyan; position: absolute; top: 250px; left: 76%; width: 60px; height: 60px;"></div>
+ </section>
+
+ </div>
+
+ </div>
+
+ <script src="../dist/reveal.min.js"></script>
+ <script src="../dist/plugin/highlight.js"></script>
+ <script>
+ Reveal.initialize({
+ center: true,
+ hash: true
+ });
+ </script>
+
+ </body>
+</html>
diff --git a/examples/barebones.html b/examples/barebones.html
new file mode 100644
index 0000000..28a4ea0
--- /dev/null
+++ b/examples/barebones.html
@@ -0,0 +1,38 @@
+<!doctype html>
+<html lang="en">
+
+ <head>
+ <meta charset="utf-8">
+
+ <title>reveal.js - Barebones</title>
+
+ <link rel="stylesheet" href="../dist/reveal.css">
+ </head>
+
+ <body>
+
+ <div class="reveal">
+
+ <div class="slides">
+
+ <section>
+ <h2>Barebones Presentation</h2>
+ <p>This example contains the bare minimum includes and markup required to run a reveal.js presentation.</p>
+ </section>
+
+ <section>
+ <h2>No Theme</h2>
+ <p>There's no theme included, so it will fall back on browser defaults.</p>
+ </section>
+
+ </div>
+
+ </div>
+
+ <script src="../dist/reveal.min.js"></script>
+ <script>
+ Reveal.initialize();
+ </script>
+
+ </body>
+</html>
diff --git a/examples/math.html b/examples/math.html
new file mode 100644
index 0000000..643bb6f
--- /dev/null
+++ b/examples/math.html
@@ -0,0 +1,202 @@
+<!doctype html>
+<html lang="en">
+
+ <head>
+ <meta charset="utf-8">
+
+ <title>reveal.js - Math Plugin</title>
+
+ <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
+
+ <link rel="stylesheet" href="../dist/reveal.css">
+ <link rel="stylesheet" href="../dist/theme/night.css" id="theme">
+ </head>
+
+ <body>
+
+ <div class="reveal">
+
+ <div class="slides">
+
+ <section>
+ <h2>reveal.js Math Plugin</h2>
+ <p>A thin wrapper for MathJax</p>
+ </section>
+
+ <section>
+ <h3>The Lorenz Equations</h3>
+
+ \[\begin{aligned}
+ \dot{x} &amp; = \sigma(y-x) \\
+ \dot{y} &amp; = \rho x - y - xz \\
+ \dot{z} &amp; = -\beta z + xy
+ \end{aligned} \]
+ </section>
+
+ <section>
+ <h3>The Cauchy-Schwarz Inequality</h3>
+
+ <script type="math/tex; mode=display">
+ \left( \sum_{k=1}^n a_k b_k \right)^2 \leq \left( \sum_{k=1}^n a_k^2 \right) \left( \sum_{k=1}^n b_k^2 \right)
+ </script>
+ </section>
+
+ <section>
+ <h3>A Cross Product Formula</h3>
+
+ \[\mathbf{V}_1 \times \mathbf{V}_2 = \begin{vmatrix}
+ \mathbf{i} &amp; \mathbf{j} &amp; \mathbf{k} \\
+ \frac{\partial X}{\partial u} &amp; \frac{\partial Y}{\partial u} &amp; 0 \\
+ \frac{\partial X}{\partial v} &amp; \frac{\partial Y}{\partial v} &amp; 0
+ \end{vmatrix} \]
+ </section>
+
+ <section>
+ <h3>The probability of getting \(k\) heads when flipping \(n\) coins is</h3>
+
+ \[P(E) = {n \choose k} p^k (1-p)^{ n-k} \]
+ </section>
+
+ <section>
+ <h3>An Identity of Ramanujan</h3>
+
+ \[ \frac{1}{\Bigl(\sqrt{\phi \sqrt{5}}-\phi\Bigr) e^{\frac25 \pi}} =
+ 1+\frac{e^{-2\pi}} {1+\frac{e^{-4\pi}} {1+\frac{e^{-6\pi}}
+ {1+\frac{e^{-8\pi}} {1+\ldots} } } } \]
+ </section>
+
+ <section>
+ <h3>A Rogers-Ramanujan Identity</h3>
+
+ \[ 1 + \frac{q^2}{(1-q)}+\frac{q^6}{(1-q)(1-q^2)}+\cdots =
+ \prod_{j=0}^{\infty}\frac{1}{(1-q^{5j+2})(1-q^{5j+3})}\]
+ </section>
+
+ <section>
+ <h3>Maxwell&#8217;s Equations</h3>
+
+ \[ \begin{aligned}
+ \nabla \times \vec{\mathbf{B}} -\, \frac1c\, \frac{\partial\vec{\mathbf{E}}}{\partial t} &amp; = \frac{4\pi}{c}\vec{\mathbf{j}} \\ \nabla \cdot \vec{\mathbf{E}} &amp; = 4 \pi \rho \\
+ \nabla \times \vec{\mathbf{E}}\, +\, \frac1c\, \frac{\partial\vec{\mathbf{B}}}{\partial t} &amp; = \vec{\mathbf{0}} \\
+ \nabla \cdot \vec{\mathbf{B}} &amp; = 0 \end{aligned}
+ \]
+ </section>
+
+ <section>
+ <h3>TeX Macros</h3>
+
+ Here is a common vector space:
+ \[L^2(\R) = \set{u : \R \to \R}{\int_\R |u|^2 &lt; +\infty}\]
+ used in functional analysis.
+ </section>
+
+ <section>
+ <section>
+ <h3>The Lorenz Equations</h3>
+
+ <div class="fragment">
+ \[\begin{aligned}
+ \dot{x} &amp; = \sigma(y-x) \\
+ \dot{y} &amp; = \rho x - y - xz \\
+ \dot{z} &amp; = -\beta z + xy
+ \end{aligned} \]
+ </div>
+ </section>
+
+ <section>
+ <h3>The Cauchy-Schwarz Inequality</h3>
+
+ <div class="fragment">
+ \[ \left( \sum_{k=1}^n a_k b_k \right)^2 \leq \left( \sum_{k=1}^n a_k^2 \right) \left( \sum_{k=1}^n b_k^2 \right) \]
+ </div>
+ </section>
+
+ <section>
+ <h3>A Cross Product Formula</h3>
+
+ <div class="fragment">
+ \[\mathbf{V}_1 \times \mathbf{V}_2 = \begin{vmatrix}
+ \mathbf{i} &amp; \mathbf{j} &amp; \mathbf{k} \\
+ \frac{\partial X}{\partial u} &amp; \frac{\partial Y}{\partial u} &amp; 0 \\
+ \frac{\partial X}{\partial v} &amp; \frac{\partial Y}{\partial v} &amp; 0
+ \end{vmatrix} \]
+ </div>
+ </section>
+
+ <section>
+ <h3>The probability of getting \(k\) heads when flipping \(n\) coins is</h3>
+
+ <div class="fragment">
+ \[P(E) = {n \choose k} p^k (1-p)^{ n-k} \]
+ </div>
+ </section>
+
+ <section>
+ <h3>An Identity of Ramanujan</h3>
+
+ <div class="fragment">
+ \[ \frac{1}{\Bigl(\sqrt{\phi \sqrt{5}}-\phi\Bigr) e^{\frac25 \pi}} =
+ 1+\frac{e^{-2\pi}} {1+\frac{e^{-4\pi}} {1+\frac{e^{-6\pi}}
+ {1+\frac{e^{-8\pi}} {1+\ldots} } } } \]
+ </div>
+ </section>
+
+ <section>
+ <h3>A Rogers-Ramanujan Identity</h3>
+
+ <div class="fragment">
+ \[ 1 + \frac{q^2}{(1-q)}+\frac{q^6}{(1-q)(1-q^2)}+\cdots =
+ \prod_{j=0}^{\infty}\frac{1}{(1-q^{5j+2})(1-q^{5j+3})}\]
+ </div>
+ </section>
+
+ <section>
+ <h3>Maxwell&#8217;s Equations</h3>
+
+ <div class="fragment">
+ \[ \begin{aligned}
+ \nabla \times \vec{\mathbf{B}} -\, \frac1c\, \frac{\partial\vec{\mathbf{E}}}{\partial t} &amp; = \frac{4\pi}{c}\vec{\mathbf{j}} \\ \nabla \cdot \vec{\mathbf{E}} &amp; = 4 \pi \rho \\
+ \nabla \times \vec{\mathbf{E}}\, +\, \frac1c\, \frac{\partial\vec{\mathbf{B}}}{\partial t} &amp; = \vec{\mathbf{0}} \\
+ \nabla \cdot \vec{\mathbf{B}} &amp; = 0 \end{aligned}
+ \]
+ </div>
+ </section>
+
+ <section>
+ <h3>TeX Macros</h3>
+
+ Here is a common vector space:
+ \[L^2(\R) = \set{u : \R \to \R}{\int_\R |u|^2 &lt; +\infty}\]
+ used in functional analysis.
+ </section>
+ </section>
+
+ </div>
+
+ </div>
+
+ <script src="../dist/reveal.min.js"></script>
+ <script>
+ Reveal.initialize({
+ history: true,
+ transition: 'linear',
+
+ math: {
+ // mathjax: 'https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.0/MathJax.js',
+ config: 'TeX-AMS_HTML-full',
+ TeX: {
+ Macros: {
+ R: '\\mathbb{R}',
+ set: [ '\\left\\{#1 \\; ; \\; #2\\right\\}', 2 ]
+ }
+ }
+ },
+
+ dependencies: [
+ { src: '../dist/plugin/math.js', async: true }
+ ]
+ });
+ </script>
+
+ </body>
+</html>
diff --git a/examples/media.html b/examples/media.html
new file mode 100644
index 0000000..8a982bc
--- /dev/null
+++ b/examples/media.html
@@ -0,0 +1,56 @@
+<!doctype html>
+<html lang="en">
+
+ <head>
+ <meta charset="utf-8">
+
+ <title>reveal.js - Video, Audio and Iframes</title>
+
+ <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
+
+ <link rel="stylesheet" href="../dist/reveal.css">
+ <link rel="stylesheet" href="../dist/theme/white.css" id="theme">
+ </head>
+
+ <body>
+
+ <div class="reveal">
+
+ <div class="slides">
+
+ <section>
+ <h2>Examples of embedded Video, Audio and Iframes</h2>
+ </section>
+
+ <section>
+ <h2>Iframe</h2>
+ <iframe data-autoplay width="700" height="540" src="https://slides.com/news/auto-animate/embed" frameborder="0"></iframe>
+ </section>
+
+ <section data-background-iframe="https://www.youtube.com/embed/h1_nyI3z8gI" data-background-interactive>
+ <h2 style="color: #fff;">Iframe Background</h2>
+ </section>
+
+ <section>
+ <h2>Auto-playing audio</h2>
+ <audio src="assets/beeping.wav" data-autoplay></audio>
+ </section>
+
+ <section>
+ <h2>Audio with controls</h2>
+ <audio src="assets/beeping.wav" controls></audio>
+ </section>
+
+ </div>
+
+ </div>
+
+ <script src="../dist/reveal.min.js"></script>
+ <script>
+ Reveal.initialize({
+ transition: 'linear'
+ });
+ </script>
+
+ </body>
+</html>
diff --git a/examples/multiple-instances.html b/examples/multiple-instances.html
new file mode 100644
index 0000000..9cf535a
--- /dev/null
+++ b/examples/multiple-instances.html
@@ -0,0 +1,53 @@
+<!doctype html>
+<html lang="en">
+
+ <head>
+ <meta charset="utf-8">
+
+ <title>reveal.js - Multiple Instances</title>
+
+ <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
+
+ <link rel="stylesheet" href="../dist/reveal.css">
+ <link rel="stylesheet" href="../dist/theme/white.css" id="theme">
+ </head>
+
+ <body style="background: #ddd;">
+
+ <div style="display: flex; flex-direction: row;">
+ <div class="reveal deck1" style="width: 100%; height: 50vh; margin: 10px;">
+ <div class="slides">
+ <section>Deck 1, Slide 1</section>
+ <section>Deck 1, Slide 2</section>
+ </div>
+ </div>
+
+ <div class="reveal deck2" style="width: 100%; height: 50vh; margin: 10px;">
+ <div class="slides">
+ <section>Deck 2, Slide 1</section>
+ <section>Deck 2, Slide 2</section>
+ </div>
+ </div>
+ </div>
+
+ <script src="../dist/reveal.min.js"></script>
+ <script>
+
+ let r1 = new Reveal( document.querySelector( '.deck1' ), {
+ embedded: true,
+ keyboard: false
+ } );
+ r1.initialize();
+
+ let r2 = new Reveal( document.querySelector( '.deck2' ), {
+ embedded: true,
+ keyboard: false
+ } );
+ r2.initialize().then( () => {
+ r2.slide(1);
+ } );
+
+ </script>
+
+ </body>
+</html>
diff --git a/examples/slide-backgrounds.html b/examples/slide-backgrounds.html
new file mode 100644
index 0000000..81075c8
--- /dev/null
+++ b/examples/slide-backgrounds.html
@@ -0,0 +1,141 @@
+<!doctype html>
+<html lang="en">
+
+ <head>
+ <meta charset="utf-8">
+
+ <title>reveal.js - Slide Backgrounds</title>
+
+ <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
+
+ <link rel="stylesheet" href="../dist/reveal.css">
+ <link rel="stylesheet" href="../dist/theme/serif.css" id="theme">
+ <style type="text/css" media="screen">
+ .slides section.has-dark-background,
+ .slides section.has-dark-background h2 {
+ color: #fff;
+ }
+ .slides section.has-light-background,
+ .slides section.has-light-background h2 {
+ color: #222;
+ }
+ </style>
+ </head>
+
+ <body>
+
+ <div class="reveal">
+
+ <div class="slides">
+
+ <section data-background="#00ffff">
+ <h2>data-background: #00ffff</h2>
+ </section>
+
+ <section data-background="#bb00bb">
+ <h2>data-background: #bb00bb</h2>
+ </section>
+
+ <section data-background-color="lightblue">
+ <h2>data-background: lightblue</h2>
+ </section>
+
+ <section>
+ <section data-background="#ff0000">
+ <h2>data-background: #ff0000</h2>
+ </section>
+ <section data-background="rgba(0, 0, 0, 0.2)">
+ <h2>data-background: rgba(0, 0, 0, 0.2)</h2>
+ </section>
+ <section data-background="salmon">
+ <h2>data-background: salmon</h2>
+ </section>
+ </section>
+
+ <section data-background="rgba(0, 100, 100, 0.2)">
+ <section>
+ <h2>Background applied to stack</h2>
+ </section>
+ <section>
+ <h2>Background applied to stack</h2>
+ </section>
+ <section data-background="rgb(66, 66, 66)">
+ <h2>Background applied to slide inside of stack</h2>
+ </section>
+ </section>
+
+ <section data-background-transition="slide" data-background="assets/image1.png">
+ <h2>Background image</h2>
+ </section>
+
+ <section>
+ <section data-background-transition="slide" data-background="assets/image1.png">
+ <h2>Background image</h2>
+ </section>
+ <section data-background-transition="slide" data-background="assets/image1.png">
+ <h2>Background image</h2>
+ </section>
+ </section>
+
+ <section data-background="assets/image2.png" data-background-size="100px" data-background-repeat="repeat" data-background-color="#111">
+ <h2>Background image</h2>
+ <pre>data-background-size="100px" data-background-repeat="repeat" data-background-color="#111"</pre>
+ </section>
+
+ <section data-background="#888888">
+ <h2>Same background twice (1/2)</h2>
+ </section>
+ <section data-background="#888888">
+ <h2>Same background twice (2/2)</h2>
+ </section>
+
+ <section data-background-video="https://s3.amazonaws.com/static.slid.es/site/homepage/v1/homepage-video-editor.mp4,https://s3.amazonaws.com/static.slid.es/site/homepage/v1/homepage-video-editor.webm">
+ <h2>Video background</h2>
+ </section>
+
+ <section data-background-iframe="https://slides.com/news/make-better-presentations/embed?style=hidden&autoSlide=4000">
+ <h2>Iframe background</h2>
+ </section>
+
+ <section>
+ <section data-background="#417203">
+ <h2>Same background twice vertical (1/2)</h2>
+ </section>
+ <section data-background="#417203">
+ <h2>Same background twice vertical (2/2)</h2>
+ </section>
+ </section>
+
+ <section data-background="#934f4d">
+ <h2>Same background from horizontal to vertical (1/3)</h2>
+ </section>
+ <section>
+ <section data-background="#934f4d">
+ <h2>Same background from horizontal to vertical (2/3)</h2>
+ </section>
+ <section data-background="#934f4d">
+ <h2>Same background from horizontal to vertical (3/3)</h2>
+ </section>
+ </section>
+
+ </div>
+
+ </div>
+
+ <script src="../dist/reveal.min.js"></script>
+ <script>
+
+ // Full list of configuration options available here:
+ // https://github.com/hakimel/reveal.js#configuration
+ Reveal.initialize({
+ center: true,
+
+ transition: 'linear',
+ // transitionSpeed: 'slow',
+ // backgroundTransition: 'slide'
+ });
+
+ </script>
+
+ </body>
+</html>
diff --git a/examples/slide-transitions.html b/examples/slide-transitions.html
new file mode 100644
index 0000000..8f928a6
--- /dev/null
+++ b/examples/slide-transitions.html
@@ -0,0 +1,97 @@
+<!doctype html>
+<html lang="en">
+
+ <head>
+ <meta charset="utf-8">
+
+ <title>reveal.js - Slide Transitions</title>
+
+ <link rel="stylesheet" href="../dist/reveal.css">
+ <link rel="stylesheet" href="../dist/theme/white.css" id="theme">
+ <style type="text/css" media="screen">
+ .slides section.has-dark-background,
+ .slides section.has-dark-background h3 {
+ color: #fff;
+ }
+ .slides section.has-light-background,
+ .slides section.has-light-background h3 {
+ color: #222;
+ }
+ </style>
+ </head>
+
+ <body>
+
+ <div class="reveal">
+
+ <div class="slides">
+
+ <section>
+ <h3>Default</h3>
+ </section>
+
+ <section>
+ <h3>Default</h3>
+ </section>
+
+ <section data-transition="zoom">
+ <h3>data-transition: zoom</h3>
+ </section>
+
+ <section data-transition="zoom-in fade-out">
+ <h3>data-transition: zoom-in fade-out</h3>
+ </section>
+
+ <section>
+ <h3>Default</h3>
+ </section>
+
+ <section data-transition="convex">
+ <h3>data-transition: convex</h3>
+ </section>
+
+ <section data-transition="convex-in concave-out">
+ <h3>data-transition: convex-in concave-out</h3>
+ </section>
+
+ <section>
+ <section data-transition="zoom">
+ <h3>Default</h3>
+ </section>
+ <section data-transition="concave">
+ <h3>data-transition: concave</h3>
+ </section>
+ <section data-transition="convex-in fade-out">
+ <h3>data-transition: convex-in fade-out</h3>
+ </section>
+ <section>
+ <h3>Default</h3>
+ </section>
+ </section>
+
+ <section data-transition="none">
+ <h3>data-transition: none</h3>
+ </section>
+
+ <section>
+ <h3>Default</h3>
+ </section>
+
+ </div>
+
+ </div>
+
+ <script src="../dist/reveal.min.js"></script>
+ <script>
+ Reveal.initialize({
+ center: true,
+ history: true,
+
+ // transition: 'slide',
+ // transitionSpeed: 'slow',
+ // backgroundTransition: 'slide'
+ });
+ </script>
+
+ </body>
+</html>