in English
Ukungaboni kahle
Lawula ukufiphala kwezinto.
Isici opacity
sisetha ileveli yokufiphala kwento ethile. Izinga le-opacity lichaza izinga lokungafihli, lapho 1
lingabonakali nhlobo, .5
libonakala ngamaphesenti angu-50, futhi 0
lisobala ngokuphelele.
Setha i opacity
-elementi usebenzisa .opacity-{value}
izinsiza.
100%
75%
50%
25%
<div class="opacity-100">...</div>
<div class="opacity-75">...</div>
<div class="opacity-50">...</div>
<div class="opacity-25">...</div>
I-Utilities API
Izinsiza ze-Opacity zimenyezelwa kuzinsiza zethu ze-API ku- scss/_utilities.scss
. Funda indlela yokusebenzisa i-API yezinsiza.
"opacity": (
property: opacity,
values: (
0: 0,
25: .25,
50: .5,
75: .75,
100: 1,
)
),