소스 검색

Base: Add example `backdrop-filter` using `saturate()`

MacDue 2 년 전
부모
커밋
5a832c0326
1개의 변경된 파일8개의 추가작업 그리고 0개의 파일을 삭제
  1. 8 0
      Base/res/html/misc/backdrop-filter.html

+ 8 - 0
Base/res/html/misc/backdrop-filter.html

@@ -72,6 +72,10 @@
         .hue-rotate {
           backdrop-filter: hue-rotate(60deg);
         }
+
+        .saturate {
+          backdrop-filter: saturate(4);
+        }
     </style>
   </head>
   <body>
@@ -111,6 +115,10 @@
       <div class="backdrop-box hue-rotate">
       </div>
     </div>
+    <div class="image-box">
+      <div class="backdrop-box saturate">
+      </div>
+    </div>
   <script>
     const boxes = document.querySelectorAll(".backdrop-box");
     const filterMap = {};