Skip to main content

figmaAnimationStyles

Returns the Motion animation styles available in the current document.

Signature

figmaAnimationStyles(): AvailableAnimationStyle[]

Remarks

The returned styles describe animation templates that can be applied to nodes with applyAnimationStyle. Their props values are type/default descriptions for each configurable property.

const styles = figma.motion.figmaAnimationStyles()
for (const style of styles) {
console.log(style.name, style.styleId, style.props)
}