Appearance
@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?
optionaladvanceAfterMs?:number
Defined in: src/types/animation.ts:54
Auto-advance after this many milliseconds (advTm).
advanceOnClick?
optionaladvanceOnClick?:boolean
Defined in: src/types/animation.ts:52
Advance on mouse click (advClick).
Default
ts
truedurationMs?
optionaldurationMs?:number
Defined in: src/types/animation.ts:48
Exact duration in milliseconds (p14:dur); emits the mc:AlternateContent form.
sound?
optionalsound?: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?
optionalspeed?:"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?
optionalvariant?:Record<string,string>
Defined in: src/types/animation.ts:56
Type-specific variant attributes, e.g. { dir: 'd' } for push, { spokes: '2' } for wheel.