blob: e8661cc33704c63b237bff14cba18288f472c3cd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
<!DOCTYPE html>
<title>CSS Backdrop Filters Animation: Combined filters 001</title>
<link rel="author" href="mailto:masonf@chromium.org">
<link rel="help" href="https://drafts.fxtf.org/filter-effects-2/#BackdropFilterProperty">
<link rel="match" href="css-backdrop-filters-animation-combined-ref.html">
<style>
@keyframes animate {
0% {
backdrop-filter:
blur(20px)
brightness(0%)
sepia(100%)
grayscale(100%)
saturate(0%)
hue-rotate(90deg)
invert(100%)
opacity(0%)
}
100% {
backdrop-filter: none;
}
}
.square {
position: absolute;
width: 100px;
height: 100px;
top: 100px;
left: 100px;
background: black;
}
.filt {
position: absolute;
width: 200px;
height: 200px;
top: 50px;
left: 50px;
animation-name: animate;
animation-play-state: paused;
animation-delay: -2s;
animation-duration: 4s;
animation-timing-function: linear;
}
.greenbox {
position: absolute;
width: 50px;
height: 50px;
top: 75px;
left: 75px;
background: green;
}
</style>
<p>You should see a gray blurred rectangle with a green box.</p>
<div class="square"></div>
<div class="filt">
<div class="greenbox"></div>
</div>
|