forked from regisb/reveal.js-fullscreen-img
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME
40 lines (30 loc) · 1.1 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
Reveal.js fullscreen image plugin
---------------------------------
This is a simple plugin to insert full screen images in your presentations.
To use this plugin, you will need to use both the included js script and stylesheet:
- copy fullscreen-img.js to your lib/js/ folder
- copy fullscreen-img.css to your css/ folder
- include both files in your presentation:
<link rel="stylesheet" href="css/fullscreen-img.css">
<script>
Reveal.initialize({
...
dependencies: [
// Syntax highlight for <code> elements
{ src: 'lib/js/fullscreen-img.js' },
...
]
...
});
</script>
Then, you can flag any section as including a fullscreen image.
A title page:
<section fullscreen-img="img/cover_image.jpg">
<h1>A Fantastic Title</h1>
<h2>Interesting subtitle</h2>
</section>
If you want to scale the image so that the entire image is contained in the
slide, add a fullscreen-size attribute with value "contain" to your section:
<section fullscreen-img="img/cover_image.jpg" fullscreen-size="contain">
...
</section>