Skip to content

Interface: TransitionProps ​

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 ​

advanceAfterMs? ​

optional advanceAfterMs?: number

Auto-advance after this many milliseconds (advTm).


advanceOnClick? ​

optional advanceOnClick?: boolean

Advance on mouse click (advClick).

Default ​

ts
true

durationMs? ​

optional durationMs?: number

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


sound? ​

optional sound?: TransitionSoundProps

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


speed? ​

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

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


type ​

type: "split" | "push" | "zoom" | "circle" | "cut" | "wheel" | "diamond" | "plus" | "blinds" | "checker" | "dissolve" | "comb" | "cover" | "fade" | "newsflash" | "pull" | "random" | "randomBar" | "strips" | "wedge" | "wipe"

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


variant? ​

optional variant?: Record<string, string>

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