Opacity background

How to control the opacity of the background color?
Needed to leave 0% opacity via code. It is possible ?

I don’t think you can do opacity through code.

background of which element?

Tested as properties and could not find a way to do it via code.

Button

let buttonOpacity = 0;
$w('#button').style.backgroundColor = `rgba(178, 256, 102, ${buttonOpacity})`;

Really nice, didn’t know about the .rgba() method.

Yes, the rgba is a function that sets the color, where A (stands for alpha) can be any number between 0 and 1 (half transparent is 0.5).

Ooohhhh tks.
Right.