forked from akella/UnrollingImages
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
116 lines (113 loc) · 4.11 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
<!DOCTYPE html>
<html lang="en" class="no-js">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Image Unroll Effects with Three.js | Codrops</title>
<meta name="description" content="Demo for various image unrolling effects with Three.js-" />
<meta name="keywords" content="three.js, webgl, unroll, image, effect, rollout, website, web development" />
<meta name="author" content="Codrops" />
<link rel="stylesheet" href="https://use.typekit.net/jsq0suq.css">
<link rel="stylesheet" type="text/css" href="css/base.css" />
<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 in a modern browser that supports CSS Variables.");
</script>
</head>
<body class="loading">
<main>
<!-- begin scrollable -->
<div data-scroll>
<header class="header">
<h1 class="header__title">Image Unroll Effects with Three.js</h1>
<div class="info">
<a class="info__link" href="https://tympanus.net/codrops/?p=46712">Article</a>
<a class="info__link" href="https://tympanus.net/Tutorials/FoldingDOM/">Previous demo</a>
<a class="info__link" href="https://github.com/akella/UnrollingImages">GitHub</a>
</div>
</header>
<!-- begin section -->
<section class="section intro">
<div class="intro__wrap">
<div class="intro__background-image">
<img src="img/intro1.jpg" alt="Some image">
<div class="intro__title">Watson Building, Dubai, 2020</div>
</div>
<div class="intro__foreground-image">
<img src="img/intro2.jpg" class="js-image" alt="Some image">
</div>
</div>
</section>
<!-- end section -->
<!-- begin section -->
<section class="section dos">
<div class="dos__foreground">
<div class="meta">
<h3 class="meta__subtitle">– architecture</h3>
<h2 class="meta__title">Megalith</h2>
</div>
<div class="dos__foreground-image">
<img src="img/dos1.jpg" alt="Some image">
</div>
</div>
<div class="dos__background">
<div class="dos__background-image">
<img src="img/dos2.jpg" class="js-image" alt="Some image">
</div>
<div class="dos__text">
<p>Carlon Arc, Chicago, 2019</p>
</div>
</div>
</section>
<!-- end section -->
<!-- begin tres -->
<section class="section tres">
<div class="tres__foreground">
<div class="tres__foreground-image">
<img src="img/tres1.jpg" class="js-image" alt="Some image">
</div>
<div class="meta">
<h3 class="meta__subtitle">– innovator</h3>
<h2 class="meta__title">Neon Plex</h2>
</div>
</div>
<div class="tres__background">
<div class="tres__background-image">
<img src="img/tres2.jpg" alt="Some image">
</div>
<div class="tres__text">
<p>Plex Construct, Sydney, 2018</p>
</div>
</div>
</section>
<!-- end tres -->
<!-- begin section cuatro -->
<section class="section cuatro">
<ul>
<li><img src="img/1.jpg" class="js-image" alt="Some image"></li>
<li><img src="img/2.jpg" class="js-image" alt="Some image"></li>
<li><img src="img/3.jpg" class="js-image" alt="Some image"></li>
<li><img src="img/4.jpg" class="js-image" alt="Some image"></li>
</ul>
</section>
<!-- end section -->
<!-- begin section -->
<section class="section last">
<div class="buttons">
<button class="button js-change" data-angle="90">Vertical</button>
<button class="button js-change" data-angle="17">Angled</button>
<button class="button js-change" data-angle="0">Horizontal</button>
</div>
<div class="last__image">
<img src="img/last.jpg" class="js-image" alt="Some image">
</div>
</div>
<!-- end section -->
</section>
<!-- end scrollable -->
</main>
<div id="container"></div>
<script src="js/app.js"></script>
</body>
</html>