effect
effect(self: none, fn, visible-subslides, cont, is-method: false)(source)Take effect in some subslides.
Example: #effect(text.with(fill: red), "2-")[Something] will display [Something] if the current slide is 2 or later.
You can also add an abbreviation by using #let effect-red = effect.with(text.with(fill: red)) for your own effects.
fn : function
The function that will be called in the subslide. Or you can use a method function like (self: none) => { .. }.
visible-subslides : int | array | str
A single integer, an array of integers, or a string specifying the visible subslides. Supported formats: - A single integer, e.g. 3 — only subslide 3. - An array, e.g. (1, 2, 4) — equivalent to "1, 2, 4". - A string with ranges, e.g. "-2, 4, 6-8, 10-" — subslides 1, 2, 4, 6, 7, 8, 10, and all after 10.
cont : content
The content to display when the content is visible in the subslide.
is-method : bool default: false
Whether the function is a method function. Default is false.
Returns: content