-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPerson&Earth.html
51 lines (48 loc) · 1.24 KB
/
Person&Earth.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
<!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,
html {
width: 100%;
height: 100%;
display: flex;
background: #000;
}
:root {
--bgUrl: url(https://media1.giphy.com/media/3o6MbmSqPSw1QjgB8c/giphy.gif?cid=ecf05e47jivhf31ncgqoii30055sect0t1uwjj64tzao86tl&ep=v1_gifs_search&rid=giphy.gif);
}
div {
position: relative;
margin: auto;
width: 400px;
height: 500px;
flex-shrink: 0;
background: url(https://s1.ax1x.com/2022/12/16/z75z7T.jpg);
background-size: cover;
background-position: 0 -150px;
background-repeat: no-repeat;
}
div::before {
content: '';
position: absolute;
top: 240px;
left: 160px;
width: 70px;
height: 90px;
background: var(--bgUrl);
background-size: cover;
background-position: -20px 0;
mix-blend-mode: multiply;
filter: contrast(3);
clip-path: polygon(0 0, 100% 0, 100% 94%, 0 94%);
}
</style>
</head>
<body>
<div></div>
</body>
</html>