Skip to main content

timelines

The Motion timelines that contain this node. Currently this returns the containing top-level frame's timeline.

Signature

timelines: ReadonlyArray<Timeline> [readonly]

Remarks

const node = figma.currentPage.selection[0]
if (node) {
for (const timeline of node.timelines) {
console.log(timeline.id, timeline.duration)
}
}