-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmix-blend-mode.html
57 lines (48 loc) · 1017 Bytes
/
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
48
49
50
51
52
53
54
55
56
57
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<style>
body {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
}
.container {
margin-top: 100px;
position: relative;
}
.container>div {
position: absolute;
top: 0;
left: 0;
width: 150px;
height: 150px;
border-radius: 50%;
}
.red {
background-color: rgba(255, 0, 0, .8);
transform: translateX(25%);
}
.green {
background-color: rgba(0, 255, 0, .8);
transform: translateX(-25%);
}
.blue {
background-color: rgba(0, 0, 255, .8);
transform: translateY(-25%);
mix-blend-mode: color;
}
</style>
</head>
<body>
<div class="container">
<div class="red"></div>
<div class="green"></div>
<div class="blue"></div>
</div>
</body>
</html>