Skip to content

@shbernal/ts-pptx


@shbernal/ts-pptx / index / TransitionProps

Interface: TransitionProps

Defined in: src/types/animation.ts:44

Slide-show transition applied between slides (p:transition). Assign to Slide.transition. Setting durationMs emits PowerPoint's mc:AlternateContent form (a p14 Choice carrying p14:dur plus a base mc:Fallback); otherwise only the coarse speed bucket is written.

Example

ts
slide.transition = { type: 'push', durationMs: 1250, variant: { dir: 'd' } }

Properties

_sndRId?

optional _sndRId?: number

Defined in: src/types/animation.ts:63

Internal: the slide relationship id assigned to the embedded sound part, stamped by the export-time registration pass. Not part of the authoring surface.


advanceAfterMs?

optional advanceAfterMs?: number

Defined in: src/types/animation.ts:54

Auto-advance after this many milliseconds (advTm).


advanceOnClick?

optional advanceOnClick?: boolean

Defined in: src/types/animation.ts:52

Advance on mouse click (advClick).

Default

ts
true

durationMs?

optional durationMs?: number

Defined in: src/types/animation.ts:48

Exact duration in milliseconds (p14:dur); emits the mc:AlternateContent form.


sound?

optional sound?: TransitionSoundProps

Defined in: src/types/animation.ts:58

Sound played with the transition (p:sndAc): a start sound (embedded WAV) or the stop-previous form.


speed?

optional speed?: "slow" | "med" | "fast"

Defined in: src/types/animation.ts:50

Coarse speed bucket (spd); derived from durationMs when omitted, else defaults to fast.


type

type: TransitionType

Defined in: src/types/animation.ts:46

Transition type (the <p:TYPE/> element), e.g. fade, push, wipe, cut, dissolve.


variant?

optional variant?: Record<string, string>

Defined in: src/types/animation.ts:56

Type-specific variant attributes, e.g. { dir: 'd' } for push, { spokes: '2' } for wheel.