Luncat ka eusi utama Luncat ka navigasi docs
in English

Opacity

Ngadalikeun opacity unsur.

Harta opacitynangtukeun tingkat opacity pikeun hiji unsur. Tingkat opacity ngajelaskeun tingkat transparansi, dimana 1henteu transparan pisan, .550% katingali, sareng 0transparan lengkep.

Setel opacityunsur nganggo .opacity-{value}utiliti.

100%
75%
50%
25%
<div class="opacity-100">...</div>
<div class="opacity-75">...</div>
<div class="opacity-50">...</div>
<div class="opacity-25">...</div>

Utiliti API

Utiliti Opacity dinyatakeun dina API Utiliti kami di scss/_utilities.scss. Diajar kumaha ngagunakeun Utiliti API.

    "opacity": (
      property: opacity,
      values: (
        0: 0,
        25: .25,
        50: .5,
        75: .75,
        100: 1,
      )
    ),