in English
Bahaushe
Sarrafa gaɓoɓin abubuwa.
Kayan opacity
yana saita matakin rashin fahimta don wani kashi. Matsayin da ba a iya gani ba yana kwatanta matakin nuna gaskiya, inda 1
ba a bayyana ba kwata-kwata .5
, ana iya ganin kashi 50%, kuma a bayyane 0
yake.
Saita opacity
wani kashi ta amfani da .opacity-{value}
utilities.
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 ɗin Utilities
Ana ayyana abubuwan amfani a cikin API ɗin mu a cikin scss/_utilities.scss
. Koyi yadda ake amfani da API ɗin abubuwan amfani.
"opacity": (
property: opacity,
values: (
0: 0,
25: .25,
50: .5,
75: .75,
100: 1,
)
),