Complete the code to apply a background blur effect in Figma.
const blurEffect = { type: '[1]', radius: 10 };In Figma, the background blur effect is specified with the type BACKGROUND_BLUR.
Complete the code to add the blur effect to a Figma node's effects array.
node.effects = [[1]];To apply a background blur effect with radius 15, use { type: 'BACKGROUND_BLUR', radius: 15 } in the effects array.
Fix the error in the code to correctly set a background blur effect with radius 8.
node.effects = [{ type: '[1]', radius: 8 }];The correct effect type for background blur is BACKGROUND_BLUR. Using LAYER_BLUR or shadow types will not produce the desired effect.
Fill both blanks to create a background blur effect with radius 12 and visible property set to true.
const effect = { type: [1], radius: [2], visible: true };The effect type must be 'BACKGROUND_BLUR' and the radius is 12 as specified.
Fill all three blanks to define a background blur effect with radius 20, visible set to false, and blend mode set to 'PASS_THROUGH'.
const effect = { type: [1], radius: [2], visible: [3], blendMode: 'PASS_THROUGH' };The effect type is 'BACKGROUND_BLUR', radius is 20, and visible is set to false as required.