Rekọja si akoonu akọkọ Rekọja si lilọ kiri awọn docs
Check
in English

Òótọ́

Ṣakoso opacity ti awọn eroja.

Ohun opacity-ini naa ṣeto ipele opacity fun eroja kan. Ipele opacity ṣe apejuwe ipele akoyawo, nibiti 1ko ṣe afihan rara, .550% han, ati 0pe o han gbangba.

Ṣeto opacityeroja nipa lilo .opacity-{value}awọn ohun elo.

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 Awọn ohun elo

Awọn ohun elo aiṣedeede jẹ ikede ninu awọn ohun elo API ni scss/_utilities.scss. Kọ ẹkọ bi o ṣe le lo API awọn ohun elo.

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