fragment

fun fragment(effect: Effect = Effect.NONE, index: Int = 0): String

Emit a reveal.js fragment attribute comment. Attach to a line in Markdown content to reveal it progressively on click.

Parameters

effect

fragment animation; Effect.NONE emits a plain .fragment class.

index

optional data-fragment-index for controlling reveal order; 0 omits it.