-
Notifications
You must be signed in to change notification settings - Fork 26
/
index.html
executable file
·154 lines (151 loc) · 7.23 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
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
<!DOCTYPE html>
<html lang="en" class="no-js">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>3D Folded Layout | Demo 1 | Codrops</title>
<meta name="description" content="An experiemntal 3D layout technique for HTML elements." />
<meta name="keywords" content="3d, layout, html, css, bending, javascript, demo" />
<meta name="author" content="Codrops" />
<link rel="shortcut icon" href="favicon.ico" />
<link rel="stylesheet" href="https://use.typekit.net/ofv7fvi.css">
<link rel="stylesheet" type="text/css" href="css/base.css" />
<link rel="stylesheet" type="text/css" href="css/typo.css" />
<script src="https://ajax.googleapis.com/ajax/libs/webfont/1.6.26/webfont.js"></script>
<script>
document.documentElement.className = "js";
var supportsCssVars = function() {
var e,
t = document.createElement("style");
return (
(t.innerHTML = "root: { --tmp-var: bold; }"),
document.head.appendChild(t),
(e = !!(
window.CSS &&
window.CSS.supports &&
window.CSS.supports("font-weight", "var(--tmp-var)")
)),
t.parentNode.removeChild(t),
e
);
};
supportsCssVars() ||
alert(
"Please view this demo in a modern browser that supports CSS Variables."
);
</script>
</head>
<body class="demo-1 loading">
<main>
<div class="message">Some message for mobile (if needed).</div>
<div class="frame">
<h1 class="frame__title">3D Folded Layout</h1>
<div class="frame__links">
<a href="http://tympanus.net/Tutorials/TextureProjection/">Previous Demo</a>
<a href="https://tympanus.net/codrops/?p=46441">Article</a>
<a href="https://github.com/Anemolo/FoldingDOM">GitHub</a>
</div>
<div class="frame__demos">
<a href="index.html" class="frame__demo frame__demo--current">demo 1</a>
<a href="index2.html" class="frame__demo">demo 2</a><a href="index3.html" class="frame__demo">demo 3</a><a href="index4.html" class="frame__demo">demo 4</a><a href="index5.html" class="frame__demo">demo 5</a>
</div>
</div>
<div class="content">
<div class="fold-content" id="base-content">
<!-- CONTENT INSIDE HERE -->
<div class="content__line">
<span class="type type--1">Bocelli</span>
<span class="type type--2">Barcelona</span>
<span class="type type--1">Bocelli</span>
<span class="type type--2">Barcelona</span>
</div>
<div class="content__line">
<span class="type type--3">Sandeca</span>
<span class="type type--4">Budapest</span>
<span class="type type--3">Sandeca</span>
<span class="type type--4">Budapest</span>
</div>
<div class="content__line">
<span class="type type--6">Franklin</span>
<span class="type type--1">Berlin</span>
<span class="type type--6">Franklin</span>
</div>
<div class="content__line">
<span class="type type--5">Tokyo</span>
<span class="type type--2">Hoshen</span>
<span class="type type--5">Tokyo</span>
</div>
<div class="content__line">
<span class="type type--1">Andrew</span>
<span class="type type--7">New York</span>
<span class="type type--1">Andrew</span>
<span class="type type--7">New York</span>
</div>
<div class="content__line">
<span class="type type--3">Sandeca</span>
<span class="type type--4">Budapest</span>
<span class="type type--3">Sandeca</span>
<span class="type type--4">Budapest</span>
<span class="type type--3">Sandeca</span>
<span class="type type--4">Budapest</span>
</div>
<div class="content__line">
<span class="type type--6">Franklin</span>
<span class="type type--1">Berlin</span>
<span class="type type--6">Franklin</span>
<span class="type type--1">Berlin</span>
<span class="type type--6">Franklin</span>
<span class="type type--1">Berlin</span>
</div>
<div class="content__line">
<span class="type type--5">Tokyo</span>
<span class="type type--2">Hoshen</span>
<span class="type type--5">Tokyo</span>
<span class="type type--2">Hoshen</span>
<span class="type type--5">Tokyo</span>
<span class="type type--2">Hoshen</span>
</div>
<div class="content__line">
<span class="type type--1">Bocelli</span>
<span class="type type--2">Barcelona</span>
<span class="type type--1">Bocelli</span>
<span class="type type--2">Barcelona</span>
</div>
<div class="content__line">
<span class="type type--3">Sandeca</span>
<span class="type type--4">Budapest</span>
<span class="type type--3">Sandeca</span>
<span class="type type--4">Budapest</span>
<span class="type type--3">Sandeca</span>
<span class="type type--4">Budapest</span>
</div>
<div class="content__line">
<span class="type type--6">Franklin</span>
<span class="type type--1">Berlin</span>
<span class="type type--6">Franklin</span>
<span class="type type--1">Berlin</span>
<span class="type type--6">Franklin</span>
<span class="type type--1">Berlin</span>
</div>
<div class="content__line">
<span class="type type--5">Tokyo</span>
<span class="type type--2">Hoshen</span>
<span class="type type--5">Tokyo</span>
<span class="type type--2">Hoshen</span>
<span class="type type--5">Tokyo</span>
<span class="type type--2">Hoshen</span>
</div>
</div>
<div class="screen" id="fold-effect">
<div class="wrapper-3d">
<div class="fold fold-before"></div>
<div class="fold fold-center"></div>
<div class="fold fold-after"></div>
</div>
</div>
<button class="btn-debug" id="btn-debug" style="visibility:hidden">See Planes</button>
</div>
</main>
<script src="./js/default.js"></script>
</body>
</html>