Skip to main content

removeAnimationStyle

Removes an applied Motion animation style from this node.

Signature

removeAnimationStyle(id: string): void

Parameters

id

The applied animation style instance id returned by applyAnimationStyle or read from animationStyles.

Remarks

const node = figma.currentPage.selection[0]
const [appliedStyle] = node?.animationStyles ?? []
if (node && appliedStyle) {
node.removeAnimationStyle(appliedStyle.id)
}