-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathindex.html
110 lines (100 loc) · 2.94 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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Reader for EZM</title>
<meta property="og:title" content="Reader for EZM" />
<meta name="description" content="An electric zine" />
<meta property="og:description" content="An electric zine" />
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" href="./pages/FRONT.png" type="image/png" />
<link rel="apple-touch-icon" href="./pages/FRONT.png" type="image/png" />
<style>
html,
body {
padding: 0;
margin: 0;
overflow: hidden;
font-family: sans-serif;
text-align: center;
}
#loading {
position: absolute;
width: 100%;
height: 100%;
display: flex;
justify-content: center;
align-items: center;
background-color: #f5f5f5;
}
ul {
padding: 0;
margin: 0;
list-style: none;
position: absolute;
top: 0;
right: 0;
left: 0;
bottom: 0;
width: 100%;
height: 100%;
transform-style: preserve-3d;
user-select: none;
perspective-origin: center;
perspective: 1000px;
}
li {
position: absolute;
top: 0;
right: 0;
left: 0;
bottom: 0;
width: 50%;
height: 100%;
backface-visibility: hidden;
transform-style: preserve-3d;
transform-origin: center left;
transition: transform 0.8s cubic-bezier(0.645, 0.045, 0.355, 1.000);
}
img {
position: absolute;
top: 0;
right: 0;
left: 0;
bottom: 0;
width: 100%;
height: 100%;
backface-visibility: hidden;
object-fit: contain;
object-position: center left;
transition: transform 0.8s cubic-bezier(0.645, 0.045, 0.355, 1.000);
}
li:nth-child(even) img {
object-position: center right;
}
li.depth-0 img {
transform: translateZ(0) scaleX(1);
}
li:nth-child(even) img {
transform: translateZ(0) scaleX(-1);
}
li.depth-1 img {
transform: translateZ(-2px) scaleX(1);
}
li.depth-1:nth-child(even) img {
transform: translateZ(-2px) scaleX(-1);
}
li.depth-2 img {
transform: translateZ(-4px) scaleX(1);
}
li.depth-2:nth-child(even) img {
transform: translateZ(-4px) scaleX(-1);
}
</style>
</head>
<body>
<noscript>This electric zine requires javascript to be enabled.</noscript>
<div id="loading">loading zine...</div>
<script src="ezmreader.js"></script>
</body>
</html>