Appearance
@shbernal/pptxgenjs / index / AnimationProps
Interface: AnimationProps
Defined in: core-interfaces.ts:3327
A preset build animation on a shape (entrance/emphasis/exit), added via PresSlide.addAnimation. Target the shape by its 0-based add order (shapeIndex, mapping to the generated spid = shapeIndex + 2) or by objectName. Effects play in the order added, grouped into click steps by trigger.
Properties
durationMs?
optionaldurationMs?:number
Defined in: core-interfaces.ts:3337
Effect duration in milliseconds; preset-specific default when omitted.
objectName?
optionalobjectName?:string
Defined in: core-interfaces.ts:3333
Target shape by its objectName (alternative to shapeIndex).
preset
preset:
PresetEffect
Defined in: core-interfaces.ts:3329
The preset effect to play.
shapeIndex?
optionalshapeIndex?:number
Defined in: core-interfaces.ts:3331
0-based add order of the target shape on the slide (spid = shapeIndex + 2).
trigger?
optionaltrigger?:AnimationTrigger
Defined in: core-interfaces.ts:3335
Trigger relative to the previous effect.
Default
ts
'onClick'