reveal.js Configuration Options
Some attributes can be set at the top of the document that are specific to the reveal.js
converter.
They use the same name as in the reveal.js
project except that they are prepended by revealjs_
and case doesn’t matter.
They are applied in the document template.
Default settings are based on reveal.js default settings.
|
Attribute | Value(s) | Description |
---|---|---|
|
beige, black, league, night, serif, simple, sky, solarized, white |
Chooses one of reveal.js’ built-in themes. |
|
<file|URL> |
Overrides CSS with given file or URL. Default is disabled. |
|
<file|URL> |
Overrides highlight.js CSS style with given file or URL. Default is built-in lib/css/zenburn.css. |
|
<file|URL> |
Overrides reveal.js directory.
Example: ../reveal.js or
cdn.jsdelivr.net/npm/reveal.js@4.1.2.
Default is |
|
true, false |
Display presentation control arrows |
|
true, false |
Help the user learn the controls by providing hints, for example by bouncing the down arrow when they first encounter a vertical slide |
|
edges, bottom-right |
Determines where controls appear, "edges" or "bottom-right" |
|
faded, hidden, visible |
Visibility rule for backwards navigation arrows; "faded", "hidden" or "visible" |
|
true, false |
Display a presentation progress bar. |
|
true, false, h.v, h/v, c, c/t |
Display the page number of the current slide. true will display the slide number with default formatting. Additional formatting is available:
|
|
all, speaker, print |
Control which views the slide number displays on using the "showSlideNumber" value:
|
|
true, false |
Add the current slide number to the URL hash so that reloading the page/copying the URL will return you to the same slide |
|
true, false |
Push each slide change to the browser history. Implies |
|
true, false |
Enable keyboard shortcuts for navigation. |
|
true, false |
Enable the slide overview mode. |
|
true, false |
Disables the default reveal.js slide layout so that you can use custom CSS layout. |
|
true, false |
Enables touch navigation on devices with touch input. |
|
true, false |
Vertical centering of slides. |
|
true, false |
Loop the presentation. |
|
true, false |
Change the presentation direction to be RTL. |
|
default, linear, grid |
See github.com/hakimel/reveal.js/blob/v3.9/README.md#navigation-mode for details |
|
true, false |
Randomizes the order of slides each time the presentation loads |
|
true, false |
Turns fragments on and off globally. |
|
true, false |
Flags whether to include the current fragment in the URL, so that reloading brings you to the same fragment position |
|
true, false |
Flags if the presentation is running in an embedded mode (i.e., contained within a limited portion of the screen). |
|
true, false |
Flags if we should show a help overlay when the question mark key (?) is pressed |
|
true, false |
Flags if speaker notes should be visible to all viewers |
|
null, true, false |
Global override for playing automatically embedded media (video/audio/iframe)
|
|
null, true, false |
Global override for preloading lazy-loaded iframes
|
|
<integer> |
Delay in milliseconds between automatically proceeding to the next slide.
Disabled when set to 0 (the default).
This value can be overwritten by using a |
|
true, false |
Stop auto-sliding after user input. |
|
Reveal.navigateNext |
Use this method for navigation when auto-sliding |
|
<integer> |
Specify the average time in seconds that you think you will spend presenting each slide. This is used to show a pacing timer in the speaker view. Defaults to 120 |
|
<integer> |
Specify the total time in seconds that is available to present. If this is set to a nonzero value, the pacing timer will work out the time available for each slide, instead of using the defaultTiming value. Defaults to 0 |
|
<integer> |
Specify the minimum amount of time you want to allot to each slide, if using the totalTime calculation method. If the automated time allocation causes slide pacing to fall below this threshold, then you will see an alert in the speaker notes window. Defaults to 0. |
|
true, false |
Enable slide navigation via mouse wheel. |
|
true, false |
Hide cursor if inactive |
|
<integer> |
Time before the cursor is hidden (in ms). Defaults to 5000. |
|
true, false |
Hides the address bar on mobile devices. |
|
true, false |
Opens links in an iframe preview overlay.
Add the |
|
none, fade, slide, convex, concave, zoom |
Transition style. |
|
default, fast, slow |
Transition speed. |
|
none, fade, slide, convex, concave, zoom |
Transition style for full page slide backgrounds. |
|
<integer> |
Number of slides away from the current that are visible. Default: 3. |
|
<integer> |
Number of slides away from the current that are visible on mobile devices. It is advisable to set this to a lower number than viewDistance in order to save resources. Default 3. |
|
<file|URL> |
Parallax background image. Defaults to none |
|
<CSS size syntax> |
Parallax background size (accepts any CSS syntax). Defaults to none |
|
<Number of pixels> |
Number of pixels to move the parallax background per slide
|
|
<Number of pixels> |
Number of pixels to move the parallax background per slide
|
|
<a valid CSS display mode> |
The display mode that will be used to show slides. Defaults to block |
|
<pixels|percentage unit> |
Independent from the values, the aspect ratio will be preserved when scaled to fit different resolutions. Defaults to 960 |
|
<pixels|percentage unit> |
See |
|
<percentage value> |
Factor of the display size that should remain empty around the content. Defaults to 0.1 |
|
true, false |
In PDF export, put each fragment on a separate page. Defaults to true |
|
<integer> |
In PDF export, when a slide does not fit on a single page, maximum number of pages. Defaults to 1 |
If you want to build a custom theme or customize an existing one you should take a look at the reveal.js theme documentation.
Then, use the revealjs_customtheme
AsciiDoc attribute to activate it.