-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathindex.html
96 lines (86 loc) · 2.09 KB
/
index.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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
<!DOCTYPE html>
<html lang="zh">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width,user-scalable=no,initial-scale=1,maximum-scale=1,minimum-scale=1,viewport-fit=cover,viewport-fit=cover">
<title>视频播放</title>
</head>
<style>
* {
margin: 0;
padding: 0;
}
html,
body {
width: 100%;
height: 100%;
}
body {
position: relative;
display: flex;
align-items: center;
justify-content: center;
}
.container {
position: relative;
width: 100%;
height: 100%;
overflow: hidden;
}
.canvas-wrap {
position: absolute;
top: 0;
left: 0;
height: 100%;
width: 100%;
}
.bg {
position: absolute;
display: block;
width: 100%;
bottom: 0;
left: 0;
}
.mask {
position: absolute;
display: flex;
justify-content: center;
align-items: center;
top: 0;
left: 0;
width: 100%;
height: 100%;
font-size: 32px;
color: #ff0;
}
#video-content {
width: 100%;
height: 100%;
mix-blend-mode: screen;
/* mix-blend-mode: multiply; */
/* mix-blend-mode: overlay; */
/* mix-blend-mode: darken; */
/* mix-blend-mode: lighten; */
/* mix-blend-mode: color-dodge; */
/* mix-blend-mode: color-burn; */
/* mix-blend-mode: hard-light; */
/* mix-blend-mode: soft-light; */
/* mix-blend-mode: difference; */
/* mix-blend-mode: exclusion; */
/* mix-blend-mode: hue; */
/* mix-blend-mode: saturation; */
/* mix-blend-mode: color; */
/* mix-blend-mode: luminosity; */
}
</style>
<body>
<section class="container">
<img class="bg" src="./images/hanabi.png">
<div class="canvas-wrap">
<canvas id="video-content"></canvas>
</div>
<div class="mask">烟 火</div>
</section>
<script src="./index.js"></script>
</body>
</html>