Pitani kuzinthu zazikulu Pitani kumayendedwe adocs
in English

Opacity

Yesetsani kusawoneka bwino kwa zinthu.

Katunduyu opacityamakhazikitsa mulingo wosawoneka wa chinthu. Mulingo wa opacity umafotokoza mulingo wowonekera, pomwe 1sukuwonekera konse, .5ndi 50% yowonekera, ndipo ikuwonekeratu 0.

Khazikitsani opacitychinthucho pogwiritsa ntchito .opacity-{value}zofunikira.

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

Opacity utilities amalengezedwa mu utilities API mu scss/_utilities.scss. Phunzirani momwe mungagwiritsire ntchito API.

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