blob: ecd589675f89a57822b46a6078ef0ecf1f725ed2 (
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
|
<!DOCTYPE html>
<html>
<head>
<title>Transform and Blend Mode</title>
<style>
body {
background: cornflowerblue;
}
.box-blend-mode {
width: 64px;
height: 64px;
margin-bottom: 1em;
background-color: hsla(0,0%,0%,.25);
mix-blend-mode: multiply;
}
.box-blend-mode-inner {
width: 48px;
height: 48px;
background-image: url("../backgrounds/transparent-32x32.png");
background-position: center center;
background-repeat: no-repeat;
mix-blend-mode: multiply;
}
.box-blend-mode-inner.transformed {
transform: rotate(45deg);
}
</style>
</head>
<body>
<div class="box-blend-mode">
<div class="box-blend-mode-inner"></div>
</div>
<div class="box-blend-mode">
<div class="box-blend-mode-inner transformed"></div>
</div>
</body>
</html>
|