Tsallake zuwa babban abun ciki Tsallake zuwa kewayawa na takardu
Check
in English

Bahaushe

Sarrafa gaɓoɓin abubuwa.

Kayan opacityyana saita matakin rashin fahimta don wani kashi. Matsayin da ba a iya gani ba yana kwatanta matakin nuna gaskiya, inda 1ba a bayyana ba kwata-kwata .5, ana iya ganin kashi 50%, kuma a bayyane 0yake.

Saita opacitywani 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,
      )
    ),