blob: c87903ccbaee50290661e2dd8810c06cd3b9dc44 [file] [log] [blame]
Marc Kupietz9c036a42024-05-14 13:17:25 +02001<!doctype html>
2<html lang="en">
3
4 <head>
5 <meta charset="utf-8">
6
7 <title>reveal.js - Scroll View</title>
8
9 <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
10
11 <link rel="stylesheet" href="../dist/reset.css">
12 <link rel="stylesheet" href="../dist/reveal.css">
13 <link rel="stylesheet" href="../dist/theme/black.css" id="theme">
14 <link rel="stylesheet" href="../plugin/highlight/monokai.css">
15 </head>
16
17 <body>
18
19 <div class="reveal">
20
21 <div class="slides">
22
23 <section><h1>Scroll View</h1></section>
24 <section data-background="indigo">
25 <h2>Scroll triggered fragments</h2>
26 <ul>
27 <li class="fragment fade-left">Step one</li>
28 <li class="fragment fade-left">Step two</li>
29 <li class="fragment fade-left">Step three</li>
30 </ul>
31 </section>
32 <section data-background-color="#fff"><h2>Scrollbar inverts<br>based on slide bg</h2></section>
33 <section data-auto-animate data-auto-animate-easing="cubic-bezier(0.770, 0.000, 0.175, 1.000)">
34 <h2>Auto-Animate</h2>
35 <p>Scroll triggered auto-animations 😍</p>
36 <div class="r-hstack justify-center">
37 <div data-id="box1" style="background: #999; width: 50px; height: 50px; margin: 10px; border-radius: 5px;"></div>
38 <div data-id="box2" style="background: #999; width: 50px; height: 50px; margin: 10px; border-radius: 5px;"></div>
39 <div data-id="box3" style="background: #999; width: 50px; height: 50px; margin: 10px; border-radius: 5px;"></div>
40 </div>
41 </section>
42 <section data-auto-animate data-auto-animate-easing="cubic-bezier(0.770, 0.000, 0.175, 1.000)">
43 <div class="r-hstack justify-center">
44 <div data-id="box1" data-auto-animate-delay="0" style="background: cyan; width: 150px; height: 100px; margin: 10px;"></div>
45 <div data-id="box2" data-auto-animate-delay="0.1" style="background: magenta; width: 150px; height: 100px; margin: 10px;"></div>
46 <div data-id="box3" data-auto-animate-delay="0.2" style="background: yellow; width: 150px; height: 100px; margin: 10px;"></div>
47 </div>
48 <h2 style="margin-top: 20px;">Auto-Animate</h2>
49 </section>
50 <section data-auto-animate data-auto-animate-easing="cubic-bezier(0.770, 0.000, 0.175, 1.000)">
51 <div class="r-stack">
52 <div data-id="box1" style="background: cyan; width: 300px; height: 300px; border-radius: 200px;"></div>
53 <div data-id="box2" style="background: magenta; width: 200px; height: 200px; border-radius: 200px;"></div>
54 <div data-id="box3" style="background: yellow; width: 100px; height: 100px; border-radius: 200px;"></div>
55 </div>
56 <h2 style="margin-top: 20px;">Auto-Animate</h2>
57 </section>
58 <section data-background-gradient="linear-gradient(to bottom, #283b95, #17b2c3)" id="gradient-bg">
59 <h2 data-id="code-title">Code highlights,<br />meet scroll triggers</h2>
60 <pre data-id="code-animation"><code class="hljs javascript" data-trim data-line-numbers="|4,8-11|17|22-24"><script type="text/template">
61 import React, { useState } from 'react';
62
63 function Example() {
64 const [count, setCount] = useState(0);
65
66 return (
67 <div>
68 <p>You clicked {count} times</p>
69 <button onClick={() => setCount(count + 1)}>
70 Click me
71 </button>
72 </div>
73 );
74 }
75
76 function SecondExample() {
77 const [count, setCount] = useState(0);
78
79 return (
80 <div>
81 <p>You clicked {count} times</p>
82 <button onClick={() => setCount(count + 1)}>
83 Click me
84 </button>
85 </div>
86 );
87 }
88 </script></code></pre>
89 </section>
90 <section class="stack">
91 <section data-background="https://static.slid.es/reveal/image-placeholder.png" id="image-bg">
92 <h2>Image Backgrounds</h2>
93 </section>
94 <section data-background-video-muted 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">
95 <h2>Video background</h2>
96 </section>
97 </section>
98 <section><h2>The end</h2></section>
99
100 </div>
101
102 </div>
103
104 <script src="../dist/reveal.js"></script>
105 <script src="../plugin/notes/notes.js"></script>
106 <script src="../plugin/markdown/markdown.js"></script>
107 <script src="../plugin/highlight/highlight.js"></script>
108 <script>
109 Reveal.initialize({
110 view: 'scroll',
111 hash: true,
112
113 plugins: [ RevealMarkdown, RevealHighlight, RevealNotes ]
114 });
115 </script>
116
117 </body>
118</html>