Main content ah kal rawh Docs navigation ah kal rawh
Check
in English

Opacity a ni

Element hrang hrangte opacity control rawh.

Property hian opacityelement pakhat tana opacity level a set a. Opacity level hian transparency level a sawifiah a, chutah chuan 1a langtlang lo tak zet a, .550% a lang thei a, a 0langtlang vek bawk.

Utilities opacityhmangin element pakhat chu set rawh ..opacity-{value}

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

Utilities API hmanga thil tih a ni

Opacity utilities hi kan utilities API ah hian scss/_utilities.scss. Utilities API hman dan zir rawh.

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