forked from maykbrito/mini-video-me
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
91 lines (78 loc) · 1.78 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Mini Video Me</title>
<style>
body, #video-grid {
-webkit-app-region: drag;
}
button {
-webkit-app-region: nodrag;
}
body {
margin: 0;
padding: 0;
overflow: hidden;
}
video {
height: 100vh;
border-radius: 9999px;
pointer-events: none;
background: #121214;
}
.flip {
transform: rotateY(180deg);
}
#wrapper {
width: 100vw;
height: 100vh;
display: flex;
justify-content: center;
margin: auto;
position: relative;
box-sizing: border-box;
color: #FFF;
background: transparent;
background-clip: padding-box;
border: solid 5px transparent;
border-radius: 16px;
}
#wrapper:before {
content: '';
position: absolute;
top: 0; right: 0; bottom: 0; left: 0;
z-index: -1;
margin: -5px;
border-radius: inherit;
background: linear-gradient(to right, #988BC7, #FF79C6);
}
.video-wrapper {
overflow: hidden;
display: flex;
align-items: center;
justify-content: center;
border-radius: 16px;
background: transparent;
}
#wrapper.rounded {
border-radius: 50%;
/* fix border-radius on Mac Mojave */
height: calc(100vw - 1px);
}
#wrapper.rounded .video-wrapper {
border-radius: 9999px;
}
</style>
</head>
<body>
<div id="wrapper">
<div class="video-wrapper">
<video id="video" autoplay muted></video>
</div>
</div>
<script type="module" async src="./index.js"></script>
</body>
</html>