-
Notifications
You must be signed in to change notification settings - Fork 27
/
Copy pathindex2.html
executable file
·111 lines (108 loc) · 4.59 KB
/
index2.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
<!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 2 | 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/yma3ljw.css">
<link rel="stylesheet" type="text/css" href="css/base.css" />
<link rel="stylesheet" type="text/css" href="css/full.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-2 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">demo 1</a>
<a href="index2.html" class="frame__demo frame__demo--current">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 -->
<p class="content__type">
An old silent pond <br />
A frog jumps into the pond—<br />
Splash! Silence again.
</p>
<img class="content__img" src="img/14.jpg" alt="Some image" />
<p class="content__type">
A world of dew,<br />
And within every dewdrop<br />
A world of struggle.
</p>
<img class="content__img" src="img/13.jpg" alt="Some image" />
<p class="content__type">
The light of a candle<br />
Is transferred to another candle—<br />
Spring twilight
</p>
<img class="content__img" src="img/12.jpg" alt="Some image" />
<p class="content__type">
I write, erase, rewrite<br />
Erase again, and then<br />
A poppy blooms.
</p>
<img class="content__img" src="img/11.jpg" alt="Some image" />
<p class="content__type">
Over the wintry<br />
Forest, winds howl in rage<br />
With no leaves to blow.
</p>
<img class="content__img" src="img/10.jpg" alt="Some image" />
<p class="content__type">
The summer grasses.<br />
All that remains<br />
Of warriors’ dreams.
</p>
</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="">See Planes</button>
</div>
</main>
<script src="./js/imagesloaded.pkgd.min.js"></script>
<script src="./js/full.js"></script>
</body>
</html>