Skip to main content

animationStyles

The Motion animation style instances currently applied to this node.

Each entry is discriminated by type: "FIGMA" for a Figma-provided animation style, whose props values are the configured property values for this node, and "CUSTOM" for a CustomAnimationStyle.

Signature​

animationStyles: AppliedAnimationStyle[] [readonly]

Remarks​

const node = figma.currentPage.selection[0]
if (node) {
for (const style of node.animationStyles) {
if (style.type === 'FIGMA') {
console.log(style.name, style.id, style.props)
} else {
console.log(style.name, style.id)
}
}
}