Complete the code to set a simple fade transition between frames.
figma.currentPage.selection[0].prototype = { transition: { type: '[1]' } }
The 'fade' transition smoothly changes the opacity between frames.
Complete the code to set the duration of a transition to 300 milliseconds.
figma.currentPage.selection[0].prototype.transition.duration = [1]
Duration is set in seconds as a decimal, so 0.3 means 300 milliseconds.
Fix the error in the code to apply a 'smart animate' transition correctly.
figma.currentPage.selection[0].prototype.transition.type = '[1]'
'smartAnimate' enables smooth animation between similar layers in frames.
Fill both blanks to create a transition with easing 'easeInOut' and duration 0.5 seconds.
figma.currentPage.selection[0].prototype.transition = { easing: '[1]', duration: [2] }
'easeInOut' creates a smooth start and end easing, and duration 0.5 means half a second.
Fill all three blanks to set a transition with type 'push', easing 'easeIn', and duration 0.4 seconds.
figma.currentPage.selection[0].prototype.transition = { type: '[1]', easing: '[2]', duration: [3] }
This sets a 'push' transition that moves frames, with easing 'easeIn' for a smooth start, lasting 0.4 seconds.