mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-16 22:42:18 +00:00
Base: Add example backdrop-filter
using saturate()
This commit is contained in:
parent
60cc96d243
commit
5a832c0326
Notes:
sideshowbarker
2024-07-17 06:10:59 +09:00
Author: https://github.com/MacDue
Commit: 5a832c0326
Pull-request: https://github.com/SerenityOS/serenity/pull/15463
Reviewed-by: https://github.com/AtkinsSJ ✅
Reviewed-by: https://github.com/awesomekling
1 changed files with 8 additions and 0 deletions
|
@ -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 = {};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue