Base: Add example backdrop-filter using saturate()

This commit is contained in:
MacDue 2022-10-03 20:48:58 +01:00 committed by Sam Atkins
parent 60cc96d243
commit 5a832c0326

View file

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