Yeqela kokuqukethwe okuyinhloko Yeqela ku-docs navigation
Check
in English

Ukungaboni kahle

Lawula ukufiphala kwezinto.

Isici opacitysisetha ileveli yokufiphala kwento ethile. Izinga le-opacity lichaza izinga lokubonisa ngale, lapho 1lingabonakali nhlobo, .5libonakala ngamaphesenti angu-50, futhi 0lisobala 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,
      )
    ),