config.js 8.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284
  1. /**
  2. * The default reveal.js config object.
  3. */
  4. export default {
  5. // The "normal" size of the presentation, aspect ratio will be preserved
  6. // when the presentation is scaled to fit different resolutions
  7. width: 960,
  8. height: 700,
  9. // Factor of the display size that should remain empty around the content
  10. margin: 0.04,
  11. // Bounds for smallest/largest possible scale to apply to content
  12. minScale: 0.2,
  13. maxScale: 2.0,
  14. // Display presentation control arrows
  15. controls: true,
  16. // Help the user learn the controls by providing hints, for example by
  17. // bouncing the down arrow when they first encounter a vertical slide
  18. controlsTutorial: true,
  19. // Determines where controls appear, "edges" or "bottom-right"
  20. controlsLayout: 'bottom-right',
  21. // Visibility rule for backwards navigation arrows; "faded", "hidden"
  22. // or "visible"
  23. controlsBackArrows: 'faded',
  24. // Display a presentation progress bar
  25. progress: true,
  26. // Display the page number of the current slide
  27. // - true: Show slide number
  28. // - false: Hide slide number
  29. //
  30. // Can optionally be set as a string that specifies the number formatting:
  31. // - "h.v": Horizontal . vertical slide number (default)
  32. // - "h/v": Horizontal / vertical slide number
  33. // - "c": Flattened slide number
  34. // - "c/t": Flattened slide number / total slides
  35. //
  36. // Alternatively, you can provide a function that returns the slide
  37. // number for the current slide. The function should take in a slide
  38. // object and return an array with one string [slideNumber] or
  39. // three strings [n1,delimiter,n2]. See #formatSlideNumber().
  40. slideNumber: false,
  41. // Can be used to limit the contexts in which the slide number appears
  42. // - "all": Always show the slide number
  43. // - "print": Only when printing to PDF
  44. // - "speaker": Only in the speaker view
  45. showSlideNumber: 'all',
  46. // Use 1 based indexing for # links to match slide number (default is zero
  47. // based)
  48. hashOneBasedIndex: false,
  49. // Add the current slide number to the URL hash so that reloading the
  50. // page/copying the URL will return you to the same slide
  51. hash: false,
  52. // Push each slide change to the browser history. Implies `hash: true`
  53. history: false,
  54. // Enable keyboard shortcuts for navigation
  55. keyboard: true,
  56. // Optional function that blocks keyboard events when retuning false
  57. keyboardCondition: null,
  58. // Enable the slide overview mode
  59. overview: true,
  60. // Disables the default reveal.js slide layout so that you can use
  61. // custom CSS layout
  62. disableLayout: false,
  63. // Vertical centering of slides
  64. center: true,
  65. // Enables touch navigation on devices with touch input
  66. touch: true,
  67. // Loop the presentation
  68. loop: false,
  69. // Change the presentation direction to be RTL
  70. rtl: false,
  71. // Changes the behavior of our navigation directions.
  72. //
  73. // "default"
  74. // Left/right arrow keys step between horizontal slides, up/down
  75. // arrow keys step between vertical slides. Space key steps through
  76. // all slides (both horizontal and vertical).
  77. //
  78. // "linear"
  79. // Removes the up/down arrows. Left/right arrows step through all
  80. // slides (both horizontal and vertical).
  81. //
  82. // "grid"
  83. // When this is enabled, stepping left/right from a vertical stack
  84. // to an adjacent vertical stack will land you at the same vertical
  85. // index.
  86. //
  87. // Consider a deck with six slides ordered in two vertical stacks:
  88. // 1.1 2.1
  89. // 1.2 2.2
  90. // 1.3 2.3
  91. //
  92. // If you're on slide 1.3 and navigate right, you will normally move
  93. // from 1.3 -> 2.1. If "grid" is used, the same navigation takes you
  94. // from 1.3 -> 2.3.
  95. navigationMode: 'default',
  96. // Randomizes the order of slides each time the presentation loads
  97. shuffle: false,
  98. // Turns fragments on and off globally
  99. fragments: true,
  100. // Flags whether to include the current fragment in the URL,
  101. // so that reloading brings you to the same fragment position
  102. fragmentInURL: true,
  103. // Flags if the presentation is running in an embedded mode,
  104. // i.e. contained within a limited portion of the screen
  105. embedded: false,
  106. // Flags if we should show a help overlay when the question-mark
  107. // key is pressed
  108. help: true,
  109. // Flags if it should be possible to pause the presentation (blackout)
  110. pause: true,
  111. // Flags if speaker notes should be visible to all viewers
  112. showNotes: false,
  113. // Global override for autolaying embedded media (video/audio/iframe)
  114. // - null: Media will only autoplay if data-autoplay is present
  115. // - true: All media will autoplay, regardless of individual setting
  116. // - false: No media will autoplay, regardless of individual setting
  117. autoPlayMedia: null,
  118. // Global override for preloading lazy-loaded iframes
  119. // - null: Iframes with data-src AND data-preload will be loaded when within
  120. // the viewDistance, iframes with only data-src will be loaded when visible
  121. // - true: All iframes with data-src will be loaded when within the viewDistance
  122. // - false: All iframes with data-src will be loaded only when visible
  123. preloadIframes: null,
  124. // Can be used to globally disable auto-animation
  125. autoAnimate: true,
  126. // Optionally provide a custom element matcher that will be
  127. // used to dictate which elements we can animate between.
  128. autoAnimateMatcher: null,
  129. // Default settings for our auto-animate transitions, can be
  130. // overridden per-slide or per-element via data arguments
  131. autoAnimateEasing: 'ease',
  132. autoAnimateDuration: 1.0,
  133. autoAnimateUnmatched: true,
  134. // CSS properties that can be auto-animated. Position & scale
  135. // is matched separately so there's no need to include styles
  136. // like top/right/bottom/left, width/height or margin.
  137. autoAnimateStyles: [
  138. 'opacity',
  139. 'color',
  140. 'background-color',
  141. 'padding',
  142. 'font-size',
  143. 'line-height',
  144. 'letter-spacing',
  145. 'border-width',
  146. 'border-color',
  147. 'border-radius',
  148. 'outline',
  149. 'outline-offset'
  150. ],
  151. // Controls automatic progression to the next slide
  152. // - 0: Auto-sliding only happens if the data-autoslide HTML attribute
  153. // is present on the current slide or fragment
  154. // - 1+: All slides will progress automatically at the given interval
  155. // - false: No auto-sliding, even if data-autoslide is present
  156. autoSlide: 0,
  157. // Stop auto-sliding after user input
  158. autoSlideStoppable: true,
  159. // Use this method for navigation when auto-sliding (defaults to navigateNext)
  160. autoSlideMethod: null,
  161. // Specify the average time in seconds that you think you will spend
  162. // presenting each slide. This is used to show a pacing timer in the
  163. // speaker view
  164. defaultTiming: null,
  165. // Enable slide navigation via mouse wheel
  166. mouseWheel: false,
  167. // Opens links in an iframe preview overlay
  168. // Add `data-preview-link` and `data-preview-link="false"` to customise each link
  169. // individually
  170. previewLinks: false,
  171. // Exposes the reveal.js API through window.postMessage
  172. postMessage: true,
  173. // Dispatches all reveal.js events to the parent window through postMessage
  174. postMessageEvents: false,
  175. // Focuses body when page changes visibility to ensure keyboard shortcuts work
  176. focusBodyOnPageVisibilityChange: true,
  177. // Transition style
  178. transition: 'slide', // none/fade/slide/convex/concave/zoom
  179. // Transition speed
  180. transitionSpeed: 'default', // default/fast/slow
  181. // Transition style for full page slide backgrounds
  182. backgroundTransition: 'fade', // none/fade/slide/convex/concave/zoom
  183. // Parallax background image
  184. parallaxBackgroundImage: '', // CSS syntax, e.g. "a.jpg"
  185. // Parallax background size
  186. parallaxBackgroundSize: '', // CSS syntax, e.g. "3000px 2000px"
  187. // Parallax background repeat
  188. parallaxBackgroundRepeat: '', // repeat/repeat-x/repeat-y/no-repeat/initial/inherit
  189. // Parallax background position
  190. parallaxBackgroundPosition: '', // CSS syntax, e.g. "top left"
  191. // Amount of pixels to move the parallax background per slide step
  192. parallaxBackgroundHorizontal: null,
  193. parallaxBackgroundVertical: null,
  194. // The maximum number of pages a single slide can expand onto when printing
  195. // to PDF, unlimited by default
  196. pdfMaxPagesPerSlide: Number.POSITIVE_INFINITY,
  197. // Prints each fragment on a separate slide
  198. pdfSeparateFragments: true,
  199. // Offset used to reduce the height of content within exported PDF pages.
  200. // This exists to account for environment differences based on how you
  201. // print to PDF. CLI printing options, like phantomjs and wkpdf, can end
  202. // on precisely the total height of the document whereas in-browser
  203. // printing has to end one pixel before.
  204. pdfPageHeightOffset: -1,
  205. // Number of slides away from the current that are visible
  206. viewDistance: 3,
  207. // Number of slides away from the current that are visible on mobile
  208. // devices. It is advisable to set this to a lower number than
  209. // viewDistance in order to save resources.
  210. mobileViewDistance: 2,
  211. // The display mode that will be used to show slides
  212. display: 'block',
  213. // Hide cursor if inactive
  214. hideInactiveCursor: true,
  215. // Time before the cursor is hidden (in ms)
  216. hideCursorTime: 5000,
  217. // Script dependencies to load
  218. dependencies: [],
  219. // Plugin objects to register and use for this presentation
  220. plugins: []
  221. }