효과
엘리먼트의 배경 이미지와 배경 색상을 어떻게 혼합할지 제어하는 유틸리티입니다.
Class | Styles |
---|---|
bg-blend-normal | background-blend-mode: normal; |
bg-blend-multiply | background-blend-mode: multiply; |
bg-blend-screen | background-blend-mode: screen; |
bg-blend-overlay | background-blend-mode: overlay; |
bg-blend-darken | background-blend-mode: darken; |
bg-blend-lighten | background-blend-mode: lighten; |
bg-blend-color-dodge | background-blend-mode: color-dodge; |
bg-blend-color-burn | background-blend-mode: color-burn; |
bg-blend-hard-light | background-blend-mode: hard-light; |
bg-blend-soft-light | background-blend-mode: soft-light; |
bg-blend-difference | background-blend-mode: difference; |
bg-blend-exclusion | background-blend-mode: exclusion; |
bg-blend-hue | background-blend-mode: hue; |
bg-blend-saturation | background-blend-mode: saturation; |
bg-blend-color | background-blend-mode: color; |
bg-blend-luminosity | background-blend-mode: luminosity; |
bg-blend-difference
와 bg-blend-saturation
같은 유틸리티를 사용하여 엘리먼트의 배경 이미지와 색상이 어떻게 혼합되는지 제어할 수 있습니다.
bg-blend-multiply
bg-blend-soft-light
bg-blend-overlay
<div class="bg-blue-500 bg-[url(/img/mountains.jpg)] bg-blend-multiply ..."></div><div class="bg-blue-500 bg-[url(/img/mountains.jpg)] bg-blend-soft-light ..."></div><div class="bg-blue-500 bg-[url(/img/mountains.jpg)] bg-blend-overlay ..."></div>
접두사 a background-blend-mode
유틸리티 를 md:
와 같은 브레이크포인트 변형과 함께 사용하면 medium 화면 크기 이상에서만 유틸리티가 적용됩니다:
<div class="bg-blue-500 bg-[url(/img/mountains.jpg)] bg-blend-lighten md:bg-blend-darken ..."> <!-- ... --></div>
변형 사용에 대해 더 알아보려면 변형 문서를 참고하세요.