1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 23:37:36 +00:00

Base: Add example backdrop-filter using hue-rotate()

This commit is contained in:
MacDue 2022-10-01 22:46:38 +01:00 committed by Andreas Kling
parent e697a72c99
commit 2a9128efe3

View file

@ -68,6 +68,10 @@
.mixed {
backdrop-filter: grayscale(50%) invert(70%);
}
.hue-rotate {
backdrop-filter: hue-rotate(60deg);
}
</style>
</head>
<body>
@ -103,6 +107,10 @@
<div class="backdrop-box sepia">
</div>
</div>
<div class="image-box">
<div class="backdrop-box hue-rotate">
</div>
</div>
<script>
const boxes = document.querySelectorAll(".backdrop-box");
const filterMap = {};