Skip to content

Interface: AnimationProps ​

A preset build animation on a shape (entrance/emphasis/exit), added via Slide.addAnimation. Target the shape by its 0-based add order (shapeIndex) or by objectName. Effects play in the order added, grouped into click steps by trigger.

Properties ​

durationMs? ​

optional durationMs?: number

Effect duration in milliseconds; preset-specific default when omitted.


objectName? ​

optional objectName?: string

Target shape by its objectName (alternative to shapeIndex). Any shape on the slide, including one inside a group; an unresolved name warns and drops the effect.


preset ​

preset: PresetEffect

The preset effect to play.


shapeIndex? ​

optional shapeIndex?: number

0-based add order of the target SHAPE on the slide.

Counts the top-level objects that draw something, so an addNotes (or a hyperlink definition) between two shapes does not shift the shapes after it. Use objectName to target a shape inside a group; an index past the last shape warns and drops the effect.


trigger? ​

optional trigger?: AnimationTrigger

Trigger relative to the previous effect.

Default ​

ts
'onClick'