mirror of
https://github.com/SerenityOS/serenity.git
synced 2025-01-23 18:02:05 -05:00
Base: Add example backdrop-filter
using saturate()
This commit is contained in:
parent
60cc96d243
commit
5a832c0326
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
Reference in a new issue