Skip to content

Interface: SlideHandle

Defined in: deck-context.ts:20

What a slide can know about its place in the deck.

Properties

deck

deck: DeckModel

Defined in: deck-context.ts:22

The deck this slide is mounted in.


index

index: number

Defined in: deck-context.ts:24

This slide's index (fixed per mount).

Methods

active()

active(): boolean

Defined in: deck-context.ts:26

Is this slide the current one? Gate rAF loops on this.

Returns

boolean


step()

step(): number

Defined in: deck-context.ts:31

THIS slide's rendered scene step (reactive): 0 before the deck reaches it, its full steps once passed, the live step while current. Scenes read it additively — step() >= k flips scene k's CSS state, and the transition plays forward or backward for free (Step cans the idiom).

Returns

number