in English
Ku nga voni kahle
Lawula ku nga vonaki ka swiaki.
Nhundzu opacity
yi veka xiyimo xa opacity xa elemente. Level ya opacity yi hlamusela levele ya transparency, laha 1
yingari erivaleni nikatsongo, .5
yivonaka hi 50%, naswona 0
yiva erivaleni hiku hetiseka.
Seta the opacity
ya 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,
)
),