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. The id determines which applied style is removed, whether it is a Figma animation style or a CustomAnimationStyle.

Remarks​

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