Getting started
Resources
Flex
Spacing
Layout
Size
Typography
Background
Border
Transition
Utility classes for changing an element's opacity property. Opacity will affect the element with the applied class, and all child elements unless overridden.
Classes for opacity are named using the format: [o]-[value]
.
Where value includes:
#
- for the float value for that opacity property.Class | Contents |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Note that opacity: 1
is the default value for opacity in Unity. Unless the value needs to be overridden from a parent, or controlled for a transition, the o-100
class is not needed.
Opacity of 0 will produce the same appearance as visibility: hidden
, but visibility hidden will stop pseudo states from triggering, while the opacity property will not.
UXML
On this page