1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 11:57:35 +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 { .mixed {
backdrop-filter: grayscale(50%) invert(70%); backdrop-filter: grayscale(50%) invert(70%);
} }
.hue-rotate {
backdrop-filter: hue-rotate(60deg);
}
</style> </style>
</head> </head>
<body> <body>
@ -103,6 +107,10 @@
<div class="backdrop-box sepia"> <div class="backdrop-box sepia">
</div> </div>
</div> </div>
<div class="image-box">
<div class="backdrop-box hue-rotate">
</div>
</div>
<script> <script>
const boxes = document.querySelectorAll(".backdrop-box"); const boxes = document.querySelectorAll(".backdrop-box");
const filterMap = {}; const filterMap = {};