Holo i ka ʻike nui Holo i ka hoʻokele docs
in English

Opacity

E hoʻomalu i ka opacity o nā mea.

Hoʻonohonoho ka opacitywaiwai i ka pae opacity no kahi mea. Hōʻike ka pae opacity i ka pae ʻikea, kahi 1i ʻike ʻole ʻia, .5he 50% ʻike ʻia, a 0maopopo loa.

E hoʻonohonoho i opacityka ʻāpana me ka hoʻohana ʻana i .opacity-{value}nā pono.

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 no nā pono hana

Hōʻike ʻia nā pono opacity i kā mākou API ponoʻī ma scss/_utilities.scss. E aʻo pehea e hoʻohana ai i nā pono API.

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