-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
187 lines (157 loc) · 4.18 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
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Toni & Guy</title>
<link href="https://fonts.googleapis.com/css?family=Poppins:500,600,700,900&display=swap" rel="stylesheet">
<link rel="stylesheet" href="style.css">
</head>
<body>
<div class="wrapper">
<!-- OVERLAY
=============================== -->
<div class="overlay first"></div>
<div class="overlay second"></div>
<div class="overlay third"></div>
<!-- NAVBAR
=============================== -->
<nav class="navbar">
<div class="menu">
<ion-icon name="ios-menu"></ion-icon>
</div>
<div class="lang">eng</div>
<div class="search">
<ion-icon name="ios-search"></ion-icon>
</div>
</nav>
<!-- SOCIAL MEDIA
=============================== -->
<div class="media">
<ul>
<li>facebook</li>
<li>instagram</li>
<li>twitter</li>
</ul>
</div>
<!-- TEXT
=============================== -->
<div class="text">
<h1>
<span class="hidetext">toni&guy</span>
</h1>
<h2>duality</h2>
<h3>
<span class="hidetext">collection 2017 <br> duality</span>
</h3>
<p>
<span class="hidetext">
Lorem ipsum dolor sit amet consectetur, adipisicing elit. Unde quis, delectus facere
neque sunt commodi quae
culpa dolores doloribus magnam?
</span>
</p>
</div>
<!-- SPONSOR
=============================== -->
<div class="sponsor">
<img src="./images/sponsor-logo.png" alt="">
<p>official sponsor</p>
</div>
<!-- DISTORTION
=============================== -->
<div class="distortion"></div>
</div>
<!-- icons -->
<script src="https://unpkg.com/ionicons@4.5.10-0/dist/ionicons.js"></script>
<!-- gsap -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/2.1.3/TweenMax.min.js" integrity="sha256-lPE3wjN2a7ABWHbGz7+MKBJaykyzqCbU96BJWjio86U=" crossorigin="anonymous"></script>
<!-- three js -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/three.js/108/three.min.js" integrity="sha256-3mBEX8I0uMLF7+AUjJeTCelosuorzYpqwBMBPDTyQqY=" crossorigin="anonymous"></script>
<!-- hover-effect js -->
<script src="./hover-effect.umd.js"></script>
<script>
new hoverEffect({
parent: document.querySelector('.distortion'),
intensity: 0.2,
image1: './images/01.png',
image2: './images/02.png',
displacementImage: './images/diss.png',
imagesRatio: 380 / 300
})
// NAVBAR
TweenMax.staggerFrom(".navbar div", 1.5, {
delay: 1.5,
opacity: 0,
y: "20",
ease: Expo.easeInOut
}, 0.08);
// MEDIA
TweenMax.staggerFrom(".media ul li", 1.5, {
delay: 1.5,
opacity: 0,
x: "-20",
ease: Expo.easeInOut
}, 0.08);
// TEXT
TweenMax.from(".text h1 .hidetext", 1.5, {
delay: 1,
y: "100%",
ease: Expo.easeInOut
});
TweenMax.from(".text h3 .hidetext", 1.5, {
delay: 1.2,
y: "100%",
ease: Expo.easeInOut
});
TweenMax.from(".text p .hidetext", 1.5, {
delay: 1.3,
y: "100%",
ease: Expo.easeInOut
});
TweenMax.from(".text h2", 1.5, {
delay: 1.5,
opacity: 0,
x: "-10000",
ease: Expo.easeInOut
});
// SPONSOR
TweenMax.from(".sponsor img", 1.5, {
delay: 1.5,
opacity: 0,
y: "20",
ease: Expo.easeInOut
});
TweenMax.from(".sponsor p", 1.5, {
delay: 1.6,
opacity: 0,
y: "20",
ease: Expo.easeInOut
});
// DISTORTION
TweenMax.from(".distortion", 1.5, {
delay: 2,
opacity: 0,
y: "20",
ease: Expo.easeInOut
});
// OVERLAY
TweenMax.to(".first", 1.5, {
delay: .5,
top: "-100%",
ease: Expo.easeInOut
});
TweenMax.to(".second", 1.5, {
delay: .7,
top: "-100%",
ease: Expo.easeInOut
});
TweenMax.to(".third", 1.5, {
delay: .9,
top: "-100%",
ease: Expo.easeInOut
});
</script>
</body>
</html>