SlideConfig

Per-slide configuration that can also be set at the global or presentation level and cascaded. Most values are emitted as data-* attributes on the slide's <section> at render time.

Transitions: set transition for a symmetric in/out transition, or transitionIn / transitionOut for independent directions; unset values fall back to Transition.SLIDE.

Backgrounds: background is a generic color/image string (reveal.js data-background); the more-specific background* properties map to data-background-color, data-background-image, etc.

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard

reveal.js data-background — any valid color or image reference.

Link copied to clipboard

Solid background color (data-background-color).

Link copied to clipboard

URL of an iframe shown as the slide background.

Link copied to clipboard

URL for a full-slide background image (data-background-image).

Link copied to clipboard

When true, the background iframe receives user input instead of reveal.js.

Link copied to clipboard

Background opacity in the range 0.0..1.0. -1.0 omits the attribute.

Link copied to clipboard

CSS background-position.

Link copied to clipboard

CSS background-repeat.

Link copied to clipboard

CSS background-size ("cover", "contain", or explicit dimensions).

Link copied to clipboard

Transition style for full-page slide backgrounds.

Link copied to clipboard

URL of a video shown as the slide background (data-background-video).

Link copied to clipboard

Loop the background video.

Link copied to clipboard

Mute the background video.

Link copied to clipboard

(Markdown + HtmlSlide) When true, the renderer skips trimIndent() on slide content. Set this if your content has meaningful leading whitespace.

Link copied to clipboard

(Markdown + HtmlSlide) Placeholder token the renderer replaces with the slide's current indentation level when including external content via com.kslides.include.

Link copied to clipboard

Values consumed by kslides itself (theme, highlight plugin, corner links, iframe sizing, etc.).

Link copied to clipboard

(MarkdownSlide only) Character set (data-charset) when loading external Markdown.

Link copied to clipboard

(MarkdownSlide only) Speaker-notes separator regex (data-separator-notes). Only emitted when both markdownSeparator and markdownVerticalSeparator are also set; setting data-separator-notes in isolation would disable the default --- / -- separators.

Link copied to clipboard

(MarkdownSlide only) Horizontal-slide separator regex (data-separator).

Link copied to clipboard

(MarkdownSlide only) Vertical-slide separator regex (data-separator-vertical).

Link copied to clipboard

Values that correspond to documented reveal.js config options.

Link copied to clipboard

Slide-transition style for both directions. Transition.UNASSIGNED inherits.

Link copied to clipboard

Inbound slide transition. Transition.UNASSIGNED uses transition instead.

Link copied to clipboard

Outbound slide transition. Transition.UNASSIGNED uses transition instead.

Link copied to clipboard

Transition speed. Speed.UNASSIGNED inherits.

Functions

Link copied to clipboard
fun merge(other: AbstractConfig)

Copy all entries from other's maps into this config's maps. Later puts overwrite earlier ones.