Utilities

Opacity

The .opacity-* class is used to set the opacity level of an element to one of 5 different pre-defined values, or any number of custom-defined values.

opacity: 1.00
opacity: 0.75
opacity: 0.50
opacity: 0.25
opacity: 0.00

    <div class="bg opacity-100">opacity: 1.00</div>
    <div class="bg opacity-75">opacity: 0.75</div>
    <div class="bg opacity-50">opacity: 0.50</div>
    <div class="bg opacity-25">opacity: 0.25</div>
    <div class="bg opacity-0">opacity: 0.00</div>