Complete the code to set the animation type to smart animate in Figma.
figma.currentPage.selection[0].animationType = '[1]'
In Figma plugin API, the correct property value for smart animate is smartAnimate without spaces or hyphens.
Complete the code to create a transition with smart animate easing in Figma.
const transition = { type: '[1]', easing: 'ease-in-out', duration: 300 }The transition type for smart animate must be smartAnimate exactly as per Figma API.
Fix the error in the code to correctly assign smart animate to a prototype node.
node.prototype = { transition: { type: '[1]' } }The correct transition type string is smartAnimate without spaces or special characters.
Fill both blanks to create a smart animate transition with 500ms duration.
const transition = { type: '[1]', duration: [2] }The transition type must be smartAnimate and the duration is set to 500 milliseconds.
Fill all three blanks to define a smart animate transition with ease-in easing and 400ms duration.
const transition = { type: '[1]', easing: '[2]', duration: [3] }The transition type is smartAnimate, easing is ease-in, and duration is 400 milliseconds.