in English
Òótọ́
Ṣakoso opacity ti awọn eroja.
Ohun opacity
-ini naa ṣeto ipele opacity fun eroja kan. Ipele opacity ṣe apejuwe ipele akoyawo, nibiti 1
ko ṣe afihan rara, .5
50% han, ati 0
pe o han gbangba.
Ṣeto opacity
eroja nipa lilo .opacity-{value}
awọn ohun elo.
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 Awọn ohun elo
Awọn ohun elo aiṣedeede jẹ ikede ninu awọn ohun elo API ni scss/_utilities.scss
. Kọ ẹkọ bi o ṣe le lo API awọn ohun elo.
"opacity": (
property: opacity,
values: (
0: 0,
25: .25,
50: .5,
75: .75,
100: 1,
)
),