You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+38-16Lines changed: 38 additions & 16 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,7 @@ A framework for easily creating beautiful presentations using HTML. [Check out t
5
5
reveal.js comes with a broad range of features including [nested slides](https://github.com/hakimel/reveal.js#markup), [markdown contents](https://github.com/hakimel/reveal.js#markdown), [PDF export](https://github.com/hakimel/reveal.js#pdf-export), [speaker notes](https://github.com/hakimel/reveal.js#speaker-notes) and a [JavaScript API](https://github.com/hakimel/reveal.js#api). It's best viewed in a browser with support for CSS 3D transforms but [fallbacks](https://github.com/hakimel/reveal.js/wiki/Browser-Support) are available to make sure your presentation can still be viewed elsewhere.
6
6
7
7
8
-
#### More reading::
8
+
#### More reading:
9
9
-[Installation](#installation): Step-by-step instructions for getting reveal.js running on your computer.
10
10
-[Changelog](https://github.com/hakimel/reveal.js/wiki/Changelog): Up-to-date version history.
11
11
-[Examples](https://github.com/hakimel/reveal.js/wiki/Example-Presentations): Presentations created with reveal.js, add your own!
@@ -106,6 +106,9 @@ Reveal.initialize({
106
106
// Transition speed
107
107
transitionSpeed:'default', // default/fast/slow
108
108
109
+
// Transition style for full page backgrounds
110
+
backgroundTransition:'default'// default/linear
111
+
109
112
});
110
113
```
111
114
@@ -211,18 +214,6 @@ Reveal.getCurrentSlide();
211
214
Reveal.getIndices(); // { h: 0, v: 0 } }
212
215
```
213
216
214
-
### States
215
-
216
-
If you set ``data-state="somestate"`` on a slide ``<section>``, "somestate" will be applied as a class on the document element when that slide is opened. This allows you to apply broad style changes to the page based on the active slide.
217
-
218
-
Furthermore you can also listen to these changes in state via JavaScript:
If you set ``data-state="somestate"`` on a slide ``<section>``, "somestate" will be applied as a class on the document element when that slide is opened. This allows you to apply broad style changes to the page based on the active slide.
242
+
243
+
Furthermore you can also listen to these changes in state via JavaScript:
Slides are contained withing a limited portion of the screen by default to allow them to fit any display and scale uniformly. You can apply full page background colors or images by applying a ```data-background``` attribute to your ```<section>``` elements. Below are a few examples.
254
+
255
+
```html
256
+
<sectiondata-background="#ff0000">
257
+
<h2>All CSS color formats are supported, like rgba() or hsl().</h2>
<h2>This background image will be sized to 100px and repeated.</h2>
264
+
</section>
265
+
```
266
+
267
+
Backgrounds transition using a fade animation by default. This can be changed to a linear sliding transition by passing ```backgroundTransition: 'linear'``` to the ```Reveal.initialize()``` call.
268
+
269
+
248
270
### Internal links
249
271
250
272
It's easy to link between slides. The first example below targets the index of another slide whereas the second targets a slide with an ID attribute (```<section id="some-slide">```):
@@ -282,7 +304,7 @@ Note that this does not work with the page and cube transitions.
282
304
283
305
284
306
### Fragments
285
-
Fragments are used to highlight individual elements on a slide. Every elmement with the class ```fragment``` will be stepped through before moving on to the next slide. Here's an example: http://lab.hakim.se/reveal-js/#/16
307
+
Fragments are used to highlight individual elements on a slide. Every element with the class ```fragment``` will be stepped through before moving on to the next slide. Here's an example: http://lab.hakim.se/reveal-js/#/16
286
308
287
309
The default fragment style is to start out invisible and fade in. This style can be changed by appending a different class to the fragment:
288
310
@@ -583,11 +605,11 @@ The **basic setup** is for authoring presentations only. The **full setup** give
583
605
584
606
### Basic setup
585
607
586
-
The core of reveal.js is very easy to install. You'll simply need to download a copy of this repository and open the index.html file directly in your browser.g
608
+
The core of reveal.js is very easy to install. You'll simply need to download a copy of this repository and open the index.html file directly in your browser.
587
609
588
610
1. Download a copy of reveal.js from <https://github.com/hakimel/reveal.js/archive/master.zip>
589
611
590
-
2. Unizp and replace the example contents in index.html with your own
612
+
2. Unzip and replace the example contents in index.html with your own
0 commit comments