Lumpat menyang isi utama Lumpat menyang pandhu arah docs
Check
in English

Opacity

Ngontrol opacity saka unsur.

Properti opacitykasebut nyetel tingkat opacity kanggo unsur. Tingkat opacity nggambarake tingkat transparansi, 1sing ora transparan, .5katon 50%, lan 0transparan.

Setel opacityunsur nggunakake .opacity-{value}utilitas.

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

Utilities API

Utilitas opacity diumumake ing API utilitas kita ing scss/_utilities.scss. Sinau carane nggunakake API keperluan.

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