Opacity
Bootstrap 5 Opacity
The opacity
property sets the opacity level for an element. The opacity level describes the transparency level, where 1
is not transparent at all, .5
is 50% visible, and 0
is completely transparent.
Set the opacity
of an element using .opacity-{value}
utilities.
This is a mobile version of the documentation.
View this website on the desktop to copy & edit the source code of the component.
Utilities API
Opacity utilities are declared in our utilities API in scss/_utilities.scss
. Learn how to use the utilities API.
This is a mobile version of the documentation.
View this website on the desktop to copy & edit the source code of the component.