INPUT /  OUTPUT /  LANGUAGE





opacity field

Scalar field

Makes a tag and everything inside it see-through.

Applies to...

Sample usage

Behaviour

Takes a number from 0 to 1. At 1 (the default) the tag is solid. At 0 it's invisible, and whatever is behind it shows through. In between, the tag is blended with what's behind it: at 0.5, half and half.

opacity applies to the whole tag: its background, border, text and any tags inside it, all together. To make just one colour see-through, such as a background, give that colour an alpha instead (see backgroundColor).

Numbers below 0 are shown as 0, and numbers above 1 as 1. A value that isn't a number, or null, shows the tag solid. Reading the field gives back the value that was assigned.

An invisible tag still takes up its space in the layout. To remove a tag from view altogether, use the visible field.

With a transition field, changing it later fades the tag smoothly instead of all at once.

See also