-
Notifications
You must be signed in to change notification settings - Fork 54
/
mix-blend-mode.html
47 lines (47 loc) · 1.25 KB
/
mix-blend-mode.html
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
<!DOCTYPE html>
<html>
<head>
<style>
#container {
position: absolute;
left: 100px;
top: 100px;
width: 467px;
height: 462px;
background-color: rgb(128, 128, 128);
}
.rect {
position: absolute;
mix-blend-mode: difference;
}
#pink {
left: 80px;
top: 60px;
width: 250px;
height: 250px;
background-color: rgb(128, 128, 0);
}
#blue {
left: 140px;
top: 120px;
width: 250px;
height: 250px;
background-color: rgb(0, 128, 128);
}
#turquoise {
left: 180px;
top: 180px;
width: 250px;
height: 250px;
background-color: rgb(128, 0, 128);
}
</style>
</head>
<body>
<div id="container">
<div id="pink" class="rect"></div>
<div id="blue" class="rect"></div>
<div id="turquoise" class="rect"></div>
</div>
</body>
</html>