Tlolela ho litaba tsa mantlha Tlolela ho li-docs navigation
in English

Opacity

Laola opacity ea likarolo.

Thepa opacitye beha boemo ba opacity bakeng sa element. Boemo ba opacity bo hlalosa boemo ba ponaletso, moo 1bo sa bonahaleng ho hang, .5bo bonahala ka 50%, 'me 0bo hlakile ka ho feletseng.

Seta sebopeho opacitysa element u sebelisa .opacity-{value}lisebelisoa.

100%
75%
50%
25%
<div class="opacity-100">...</div>
<div class="opacity-75">...</div>
<div class="opacity-50">...</div>
<div class="opacity-25">...</div>

Utilities API

Lisebelisoa tsa Opacity li phatlalatsoa lits'ebetsong tsa rona tsa API ho scss/_utilities.scss. Ithute ho sebelisa lisebelisoa tsa API.

    "opacity": (
      property: opacity,
      values: (
        0: 0,
        25: .25,
        50: .5,
        75: .75,
        100: 1,
      )
    ),