Tlula eka nhlokomhaka-nkulu Tlula eka docs navigation
Check
in English

Ku nga voni kahle

Lawula ku nga vonaki ka swiaki.

Nhundzu opacityyi veka xiyimo xa opacity xa elemente. Level ya opacity yi hlamusela levele ya transparency, laha 1yingari erivaleni nikatsongo, .5yivonaka hi 50%, naswona 0yiva erivaleni hiku hetiseka.

Seta the opacityya elemente hi ku tirhisa .opacity-{value}switirhisiwa.

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

API ya switirhisiwa

Switirhisiwa swa opacity swi tivisiwile eka API ya hina ya switirhisiwa hi scss/_utilities.scss. Dyondza ndlela yo tirhisa API ya switirhisiwa.

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