Skip to content

Commit 50153c6

Browse files
committed
add more reveal features to slide demo
1 parent 8f4be63 commit 50153c6

File tree

1 file changed

+189
-9
lines changed

1 file changed

+189
-9
lines changed

public/docs/slide-example.md

Lines changed: 189 additions & 9 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:
@@ -23,31 +28,68 @@ Is the divider of slides
2328

2429
Is the divider of branches
2530

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

2835
### Second branch of first slide
2936

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
54+
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's 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
@@ -80,4 +122,142 @@ default/fast/slow
80122

81123
---
82124

83-
# The End
125+
## Themes
126+
127+
reveal.js comes with a few themes built in:
128+
Black (default) - White - League - Sky - Beige - Simple
129+
Serif - Blood - Night - Moon - Solarized
130+
131+
It can be set in Yaml slideOptions
132+
133+
---
134+
135+
<!-- .slide: data-background="#1A237E" -->
136+
137+
`<!-- .slide: data-background="#1A237E" -->`
138+
139+
Is the background syntax
140+
141+
---
142+
143+
<!-- .slide: data-background="https://s3.amazonaws.com/hakim-static/reveal-js/image-placeholder.png" data-background-color="#005" -->
144+
145+
<div style="color: #fff;">
146+
147+
## Image Backgrounds
148+
149+
`<!-- .slide: data-background="image.png"-->`
150+
151+
</div>
152+
153+
----
154+
155+
<!-- .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" -->
156+
157+
<div style="color: #fff;">
158+
159+
## Tiled Backgrounds
160+
161+
`<!-- .slide: data-background="image.png" data-background-repeat="repeat" data-background-size="100px" -->`
162+
163+
</div>
164+
165+
----
166+
167+
<!-- .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" -->
168+
169+
<div style="background-color: rgba(0, 0, 0, 0.9); color: #fff; padding: 20px;">
170+
171+
## Video Backgrounds
172+
173+
`<!-- .slide: data-background-video="video.mp4,video.webm" -->`
174+
175+
</div>
176+
177+
----
178+
179+
<!-- .slide: data-background="http://i.giphy.com/90F8aUepslB84.gif" -->
180+
181+
## ... and GIFs!
182+
183+
---
184+
185+
## Pretty Code
186+
187+
``` javascript
188+
function linkify( selector ) {
189+
if( supports3DTransforms ) {
190+
191+
var nodes = document.querySelectorAll( selector );
192+
193+
for( var i = 0, len = nodes.length; i < len; i++ ) {
194+
var node = nodes[i];
195+
196+
if( !node.className ) {
197+
node.className += ' roll';
198+
}
199+
}
200+
}
201+
}
202+
```
203+
Code syntax highlighting courtesy of [highlight.js](http://softwaremaniacs.org/soft/highlight/en/description/).
204+
205+
---
206+
207+
## Marvelous List
208+
209+
* No order here
210+
* Or here
211+
* Or here
212+
* Or here
213+
214+
---
215+
216+
## Fantastic Ordered List
217+
218+
1. One is smaller than...
219+
2. Two is smaller than...
220+
3. Three!
221+
222+
---
223+
224+
## Tabular Tables
225+
226+
| Item | Value | Quantity |
227+
| ---- | ----- | -------- |
228+
| Apples | $1 | 7 |
229+
| Lemonade | $2 | 18 |
230+
| Bread | $3 | 2 |
231+
232+
---
233+
234+
## Clever Quotes
235+
236+
> “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.”
237+
238+
---
239+
240+
## Intergalactic Interconnections
241+
242+
You can link between slides internally, [like this](#/1/3).
243+
244+
---
245+
246+
## Speaker View
247+
248+
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.
249+
250+
Press the _S_ key to try it out.
251+
252+
Note:
253+
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).
254+
255+
---
256+
257+
## Take a Moment
258+
259+
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.
260+
261+
---
262+
263+
# THE END

0 commit comments

Comments
 (0)