-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
60 lines (53 loc) · 1.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
<!DOCTYPE html>
<html>
<head>
<meta
content="width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;"
name="viewport"
/>
<title>Fluid Cards</title>
</head>
<body>
<style>
* {
padding: 0;
margin: 0;
user-select: none;
user-drag: none;
-webkit-user-drag: none;
-webkit-user-select: none;
}
body {
margin: 0;
width: 100vw;
height: 100vh;
overflow: hidden;
display: grid;
place-content: center;
background-color: #ddd;
cursor: grab;
}
.image {
display: flex;
will-change: transform;
}
.tint {
position: absolute;
top: 0;
left: 0;
bottom: 0;
right: 0;
background-color: black;
}
.image img {
width: 400px;
}
</style>
<div class="image">
<img src="image.jpg" />
<img src="image.jpg" />
<img src="image.jpg" />
</div>
<script src="index.js" type="module"></script>
</body>
</html>