Skip to content

Interface: TransitionInput ​

Transition fields accepted by the Slide.transition setter. A TransitionInfo read from the same slide is a valid input, so slide.transition = { ...slide.transition, speed: 'slow' } changes the speed and keeps everything else, the sound included.

Properties ​

advanceAfterMs? ​

optional advanceAfterMs?: number | null

Auto-advance delay in milliseconds (advTm), a finite number from 0; null or omitted writes none.


advanceOnClick? ​

optional advanceOnClick?: boolean


durationMs? ​

optional durationMs?: number | null

Exact duration in milliseconds (p14:dur), a finite number from 0; null or omitted writes none.


namespace? ​

optional namespace?: string

Namespace prefix for the type element; defaults to p (base ECMA-376).


sound? ​

optional sound?: TransitionSoundInfo | null

The transition sound (p:sndAc), in three states.

  • omitted keeps the sound the slide's transition already has;
  • null removes it;
  • a value is accepted only when it is that same sound, as a spread of the getter passes it.

A different sound throws transition/sound-unsupported: a start sound names an embedded audio part, which this setter does not add, so writing one would point the slide at a relationship it may not have. Add a sound when authoring the deck (slide.transition = { sound } on the write side) instead.


speed? ​

optional speed?: TransitionSpeed

Coarse speed bucket (spd). When omitted it is derived from durationMs if one is given, and otherwise not written. A stated fast, the schema default, is not written when the slide's transition had no spd either, so a transition read back and assigned again keeps its markup.


type ​

type: string


variant? ​

optional variant?: Record<string, string>