Tɛmɛn ka taa kunnafoni kunbabaw la Tɛmɛn ka taa docs navigation kan
Check
in English

Opacity (Opacity) ye

Kɔlɔsili kɛ fɛnw ka opacity (opacité) kan.

Propriété bɛ opacityopacity hakɛ sigi element dɔ la. Opacity nivo bɛ transparence nivo ɲɛfɔ, yɔrɔ min na 1a tɛ transparent fewu, .5a bɛ ye 50%, wa 0a bɛ transparent pewu.

Set the opacityof an element ni .opacity-{value}nafalanw ye.

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

Nafamafɛnw API

Opacity nafamafɛnw bɛ fɔ an ka nafamafɛnw API kɔnɔ san scss/_utilities.scss. Aw ye baara kɛcogo dɔn ni utilities API ye.

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