필터
엘리먼트에 배경 색조 회전 필터를 적용하는 유틸리티입니다.
Class | Styles |
---|---|
backdrop-hue-rotate-<number> | backdrop-filter: hue-rotate(<number>deg); |
-backdrop-hue-rotate-<number> | backdrop-filter: hue-rotate(calc(<number>deg * -1)); |
backdrop-hue-rotate-(<custom-property>) | backdrop-filter: hue-rotate(var(<custom-property>)); |
backdrop-hue-rotate-[<value>] | backdrop-filter: hue-rotate(<value>); |
backdrop-hue-rotate-90
및 backdrop-hue-rotate-180
과 같은 유틸리티를 사용하여 엘리먼트의 배경색상을 회전시킬 수 있습니다:
backdrop-hue-rotate-90
backdrop-hue-rotate-180
backdrop-hue-rotate-270
<div class="bg-[url(/img/mountains.jpg)]"> <div class="bg-white/30 backdrop-hue-rotate-90 ..."></div></div><div class="bg-[url(/img/mountains.jpg)]"> <div class="bg-white/30 backdrop-hue-rotate-180 ..."></div></div><div class="bg-[url(/img/mountains.jpg)]"> <div class="bg-white/30 backdrop-hue-rotate-270 ..."></div></div>
-backdrop-hue-rotate-90
과 -backdrop-hue-rotate-180
같은 유틸리티를 사용하여 배경색상 회전 값을 음수로 설정할 수 있습니다.
-backdrop-hue-rotate-15
-backdrop-hue-rotate-45
-backdrop-hue-rotate-90
<div class="bg-[url(/img/mountains.jpg)]"> <div class="bg-white/30 -backdrop-hue-rotate-15 ..."></div></div><div class="bg-[url(/img/mountains.jpg)]"> <div class="bg-white/30 -backdrop-hue-rotate-45 ..."></div></div><div class="bg-[url(/img/mountains.jpg)]"> <div class="bg-white/30 -backdrop-hue-rotate-90 ..."></div></div>
backdrop-hue-rotate-[<value>]
구문을 사용하세요 backdrop hue rotation를 완전히 커스텀한 값으로 설정하려면:
<div class="backdrop-hue-rotate-[3.142rad] ..."> <!-- ... --></div>
CSS 변수를 사용하려면 backdrop-hue-rotate-(<custom-property>)
구문을 사용할 수도 있습니다:
<div class="backdrop-hue-rotate-(--my-backdrop-hue-rotation) ..."> <!-- ... --></div>
이는 backdrop-hue-rotate-[var(<custom-property>)]
의 단축 표현으로, 자동으로 var()
함수를 추가해 줍니다.
접두사 a backdrop-filter: hue-rotate()
유틸리티 를 md:
와 같은 브레이크포인트 변형과 함께 사용하면 medium 화면 크기 이상에서만 유틸리티가 적용됩니다:
<div class="backdrop-hue-rotate-15 md:backdrop-hue-rotate-0 ..."> <!-- ... --></div>
변형 사용에 대해 더 알아보려면 변형 문서를 참고하세요.