in English
Opacity
Yesetsani kusawoneka bwino kwa zinthu.
Katunduyu opacity
amakhazikitsa mulingo wosawoneka wa chinthu. Mulingo wa opacity umafotokoza mulingo wowonekera, pomwe 1
sukuwonekera konse, .5
ndi 50% yowonekera, ndipo ikuwonekeratu 0
.
Khazikitsani opacity
chinthucho pogwiritsa ntchito .opacity-{value}
zofunikira.
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
Opacity utilities amalengezedwa mu utilities API mu scss/_utilities.scss
. Phunzirani momwe mungagwiritsire ntchito API.
"opacity": (
property: opacity,
values: (
0: 0,
25: .25,
50: .5,
75: .75,
100: 1,
)
),