Skip to content

Commit ca71028

Browse files
authored
Merge pull request #476 from butlerx/updated/reveal
add more reveal features to slide demo
2 parents 20c5c78 + dcaf38b commit ca71028

File tree

1 file changed

+202
-16
lines changed

1 file changed

+202
-16
lines changed

public/docs/slide-example.md

Lines changed: 202 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
1-
Slide example
2-
===
1+
---
2+
slideOptions:
3+
transition: slide
4+
---
5+
6+
# Slide example
7+
38
This feature still in beta, may have some issues.
49

510
For details please visit:
@@ -17,42 +22,80 @@ Is the divider of slides
1722

1823
----
1924

20-
### First branch of first slide
25+
### First branch of first the slide
2126

2227
`----`
2328

2429
Is the divider of branches
2530

31+
Use the _Space_ key to navigate through all slides.
32+
2633
----
2734

28-
### Second branch of first slide
35+
### Second branch of first the slide
36+
37+
Nested slides are useful for adding additional detail underneath a high-level horizontal slide.
38+
39+
---
40+
41+
## Point of View
42+
43+
Press **ESC** to enter the slide overview.
44+
45+
---
46+
47+
## Touch Optimized
48+
49+
Presentations look great on touch devices, like mobile phones and tablets. Simply swipe through your slides.
50+
51+
---
52+
53+
## Fragments
2954

3055
`<!-- .element: class="fragment" data-fragment-index="1" -->`
3156

3257
Is the fragment syntax
3358

34-
- Item 1<!-- .element: class="fragment" data-fragment-index="1" -->
35-
- Item 2<!-- .element: class="fragment" data-fragment-index="2" -->
59+
Hit the next arrow...
60+
61+
... to step through ...
62+
63+
<span>... a<!-- .element: class="fragment" data-fragment-index="1" --></span> <span>fragmented<!-- .element: class="fragment" data-fragment-index="2" --></span> <span>slide.<!-- .element: class="fragment" data-fragment-index="3" --></span>
64+
65+
Note:
66+
This slide has fragments which are also stepped through in the notes window.
3667

3768
---
3869

39-
## Second slide
70+
## Fragment Styles
4071

41-
<!-- .slide: data-background="#1A237E" -->
72+
There are different types of fragments, like:
4273

43-
`<!-- .slide: data-background="#1A237E" -->`
74+
grow
4475

45-
Is the background syntax
76+
shrink
77+
78+
fade-out
79+
80+
fade-up (also down, left and right!)
81+
82+
current-visible
83+
84+
Highlight <span><!-- .element: class="fragment highlight-red" -->red</span> <span><!-- .element: class="fragment highlight-blue" -->blue</span> <span><!-- .element: class="fragment highlight-green"-->green</span>
4685

4786
---
4887

4988
<!-- .slide: data-transition="zoom" -->
5089

90+
## Transition Styles
91+
Different background transitions are available via the transition option. This one's called "zoom".
92+
5193
`<!-- .slide: data-transition="zoom" -->`
5294

5395
Is the transition syntax
5496

55-
you can use:
97+
You can use:
98+
5699
none/fade/slide/convex/concave/zoom
57100

58101
---
@@ -61,10 +104,12 @@ none/fade/slide/convex/concave/zoom
61104

62105
`<!-- .slide: data-transition="fade-in convex-out" -->`
63106

64-
Also can set different in/out transition
107+
Also, you can set different in/out transition
108+
109+
You can use:
110+
111+
none/fade/slide/convex/concave/zoom
65112

66-
you can use:
67-
none/fade/slide/convex/concave/zoom
68113
postfix with `-in` or `-out`
69114

70115
---
@@ -75,9 +120,150 @@ postfix with `-in` or `-out`
75120

76121
Custom the transition speed!
77122

78-
you can use:
123+
You can use:
124+
79125
default/fast/slow
80126

81127
---
82128

83-
# The End
129+
## Themes
130+
131+
reveal.js comes with a few themes built in:
132+
133+
Black (default) - White - League - Sky - Beige - Simple
134+
135+
Serif - Blood - Night - Moon - Solarized
136+
137+
It can be set in YAML slideOptions
138+
139+
---
140+
141+
<!-- .slide: data-background="#1A237E" -->
142+
143+
`<!-- .slide: data-background="#1A237E" -->`
144+
145+
Is the background syntax
146+
147+
---
148+
149+
<!-- .slide: data-background="https://s3.amazonaws.com/hakim-static/reveal-js/image-placeholder.png" data-background-color="#005" -->
150+
151+
<div style="color: #fff;">
152+
153+
## Image Backgrounds
154+
155+
`<!-- .slide: data-background="image.png"-->`
156+
157+
</div>
158+
159+
----
160+
161+
<!-- .slide: data-background="https://s3.amazonaws.com/hakim-static/reveal-js/image-placeholder.png" data-background-repeat="repeat" data-background-size="100px" data-background-color="#005" -->
162+
163+
<div style="color: #fff;">
164+
165+
## Tiled Backgrounds
166+
167+
`<!-- .slide: data-background="image.png" data-background-repeat="repeat" data-background-size="100px" -->`
168+
169+
</div>
170+
171+
----
172+
173+
<!-- .slide: 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" data-background-color="#000000" -->
174+
175+
<div style="background-color: rgba(0, 0, 0, 0.9); color: #fff; padding: 20px;">
176+
177+
## Video Backgrounds
178+
179+
`<!-- .slide: data-background-video="video.mp4,video.webm" -->`
180+
181+
</div>
182+
183+
----
184+
185+
<!-- .slide: data-background="http://i.giphy.com/90F8aUepslB84.gif" -->
186+
187+
## ... and GIFs!
188+
189+
---
190+
191+
## Pretty Code
192+
193+
``` javascript
194+
function linkify( selector ) {
195+
if( supports3DTransforms ) {
196+
197+
const nodes = document.querySelectorAll( selector );
198+
199+
for( const i = 0, len = nodes.length; i < len; i++ ) {
200+
var node = nodes[i];
201+
202+
if( !node.className ) {
203+
node.className += ' roll';
204+
}
205+
}
206+
}
207+
}
208+
```
209+
Code syntax highlighting courtesy of [highlight.js](http://softwaremaniacs.org/soft/highlight/en/description/).
210+
211+
---
212+
213+
## Marvelous List
214+
215+
- No order here
216+
- Or here
217+
- Or here
218+
- Or here
219+
220+
---
221+
222+
## Fantastic Ordered List
223+
224+
1. One is smaller than...
225+
2. Two is smaller than...
226+
3. Three!
227+
228+
---
229+
230+
## Tabular Tables
231+
232+
| Item | Value | Quantity |
233+
| ---- | ----- | -------- |
234+
| Apples | $1 | 7 |
235+
| Lemonade | $2 | 18 |
236+
| Bread | $3 | 2 |
237+
238+
---
239+
240+
## Clever Quotes
241+
242+
> “For years there has been a theory that millions of monkeys typing at random on millions of typewriters would reproduce the entire works of Shakespeare. The Internet has proven this theory to be untrue.”
243+
244+
---
245+
246+
## Intergalactic Interconnections
247+
248+
You can link between slides internally, [like this](#/1/3).
249+
250+
---
251+
252+
## Speaker
253+
254+
There's a [speaker view](https://github.com/hakimel/reveal.js#speaker-notes). It includes a timer, preview of the upcoming slide as well as your speaker notes.
255+
256+
Press the _S_ key to try it out.
257+
258+
Note:
259+
Oh hey, these are some notes. They'll be hidden in your presentation, but you can see them if you open the speaker notes window (hit `s` on your keyboard).
260+
261+
---
262+
263+
## Take a Moment
264+
265+
Press `B` or `.` on your keyboard to pause the presentation. This is helpful when you're on stage and want to take distracting slides off the screen.
266+
267+
---
268+
269+
# The End

0 commit comments

Comments
 (0)