-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
345 lines (306 loc) · 12.2 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
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Document</title>
<link rel="stylesheet" href="./css/style.css" />
</head>
<body>
<ul id="scene">
<li data-depth="0.2">
<img src="./images/star.svg" alt="error" />
</li>
<li data-depth="0.4">
<img src="./images/moonlight.svg" alt="error" class="moon-light" />
</li>
<li data-depth="0.5">
<img src="./images/b_cloud01.svg" alt="error" class="cloud-1" />
</li>
<li data-depth="0.5">
<img src="./images/b_cloud02.svg" alt="error" class="cloud-2" />
</li>
<li data-depth="0.6">
<img src="./images/moon.svg" alt="error" class="moon" />
</li>
<li data-depth="0.7">
<img src="./images/cloud1.svg" alt="error" class="dark-cloud-1" />
</li>
<li data-depth="0.7">
<img src="./images/cloud2.svg" alt="error" class="dark-cloud-2" />
</li>
<li data-depth="0.7">
<img src="./images/cloud3.svg" alt="error" class="dark-cloud-3" />
</li>
</ul>
<main>
<div class="frame">
<h3 class="frame__logo">JEET.</h3>
<button class="frame__button">Menu</button>
<p class="frame__artist">
<span
>Artist —
<a
href="https://maggix1404.github.io/Portfolio-2.0/"
target="_blank"
>Jeet Ramoliya</a
></span
>
</p>
<p class="frame__credits">
<span
>Github —
<a href="https://github.com/MAGGIx1404">MAGGIx1404</a></span
>
</p>
</div>
<div class="slider">
<div class="slider__image--wrapper">
<img
class="slider__image slider__image--4"
src="./images/minato.jpg"
alt="image 04"
/>
<img
class="slider__image slider__image--3"
src="./images/itachi.jpg"
alt="image 03"
/>
<img
class="slider__image slider__image--2"
src="./images/madara.jpg"
alt="image 02"
/>
<img
class="slider__image slider__image--1"
src="./images/pain-1.png"
alt="image 01"
/>
</div>
<div class="slider__slide-info--wrapper">
<div class="slider__silde-info slide--current">
<h2 class="slide__index" data-splitting>01</h2>
<div class="slide__text--wrapper">
<h2 class="slide__text slide__text--title" data-splitting>
MINATO
</h2>
<p class="slide__text slide__text--description">
Lorem ipsum, dolor sit amet consectetur adipisicing elit.
Repellat, temporibus.
</p>
</div>
</div>
<div class="slider__silde-info">
<h2 class="slide__index" data-splitting>02</h2>
<div class="slide__text--wrapper">
<h2 class="slide__text slide__text--title" data-splitting>
ITACHI
</h2>
<p class="slide__text slide__text--description">
Lorem ipsum dolor sit, amet consectetur adipisicing elit.
Voluptate eaque magni adipisci?
</p>
</div>
</div>
<div class="slider__silde-info">
<h2 class="slide__index" data-splitting>03</h2>
<div class="slide__text--wrapper">
<h2 class="slide__text slide__text--title" data-splitting>
MADARA
</h2>
<p class="slide__text slide__text--description">
Lorem ipsum dolor sit amet consectetur adipisicing elit. Soluta
aspernatur laborum optio laboriosam sit!
</p>
</div>
</div>
<div class="slider__silde-info">
<h2 class="slide__index" data-splitting>04</h2>
<div class="slide__text--wrapper">
<h2 class="slide__text slide__text--title" data-splitting>
PAIN
</h2>
<p class="slide__text slide__text--description">
Lorem ipsum dolor sit, amet consectetur adipisicing elit. Maxime
illo explicabo odio aliquid impedit deleniti vitae distinctio
quos?
</p>
</div>
</div>
</div>
<nav class="slider__nav--wrapper">
<button class="slider__nav slider__nav--prev">
<svg>
<path
d="M 47.5547,8.05465 H 4.94603 L 10.0165,3.00878 C 10.5822,2.44568 10.5844,1.53058 10.0213,0.964816 9.45823,0.398976 8.54305,0.396881 7.97729,0.959902 L 0.425238,8.47552 c -5.06e-4,4.4e-4 -8.67e-4,9.4e-4 -0.0013,0.00138 -0.564323,0.56309 -0.566129,1.48115 -1.45e-4,2.0461 5.06e-4,5e-4 8.67e-4,10e-4 0.001301,0.0014 L 7.97714,18.04 c 0.5657,0.563 1.48087,0.561 2.04406,-0.0049 0.5631,-0.5658 0.5609,-1.4809 -0.0049,-2.044 L 4.94603,10.9453 H 47.5547 C 48.353,10.9453 49,10.2982 49,9.49996 49,8.70172 48.353,8.05465 47.5547,8.05465 Z"
fill="red"
/>
</svg>
</button>
<button class="slider__nav slider__nav--next">
<svg>
<path
d="M 1.44529,10.9454 H 44.054 l -5.0705,5.0458 c -0.5657,0.5631 -0.5679,1.4782 -0.0048,2.044 0.5631,0.5658 1.4782,0.5679 2.044,0.0049 l 7.5521,-7.5156 c 5e-4,-5e-4 8e-4,-10e-4 0.0013,-0.0014 0.5643,-0.56309 0.5661,-1.48115 1e-4,-2.04613 -5e-4,-4.3e-4 -9e-4,-9.3e-4 -0.0013,-0.00137 L 41.0229,0.959983 C 40.4572,0.397033 39.542,0.398984 38.9788,0.964896 38.4157,1.53066 38.4179,2.44576 38.9837,3.00886 L 44.054,8.05473 H 1.44528 C 0.64704,8.05473 -2.75561e-5,8.7018 -2.74863e-5,9.50004 -2.74165e-5,10.2983 0.647041,10.9454 1.44529,10.9454 Z"
fill="red"
/>
</svg>
</button>
</nav>
</div>
</main>
<svg
class="cursor cursor--large"
width="60"
height="60"
viewBox="0 0 60 60"
>
<circle class="cursor__inner" cx="30" cy="30" r="20" />
</svg>
<svg
class="cursor cursor--small"
width="60"
height="60"
viewBox="0 0 60 60"
>
<circle class="cursor__inner" cx="30" cy="30" r="5" />
</svg>
<svg
class="cursor cursor--close"
width="40"
height="40"
viewBox="0 0 512 512"
>
<line x1="368" y1="368" x2="144" y2="144" />
<line x1="368" y1="144" x2="144" y2="368" />
</svg>
<div class="loading__wrapper">
<h4 class="loading__text">
<span class="loading__text--inner">WELCOME TO MY WORLD...</span>
</h4>
<h1 class="text__wrapper">
<span class="text__row">
<span class="text">THE AKATSUKI</span>
</span>
<span class="text__row text__row--sibling" aria-hidden="true">
<span class="text">THE AKATSUKI</span>
</span>
<span class="text__row text__row--sibling" aria-hidden="true">
<span class="text">THE AKATSUKI</span>
</span>
<span class="text__row text__row--sibling" aria-hidden="true">
<span class="text">THE AKATSUKI</span>
</span>
<span class="text__row text__row--sibling" aria-hidden="true">
<span class="text">THE AKATSUKI</span>
</span>
<span class="text__row text__row--sibling" aria-hidden="true">
<span class="text">THE AKATSUKI</span>
</span>
</h1>
<div class="bg__transition--slide"></div>
</div>
<!-- //////// SHADER CODE //////// -->
<script id="vertexShader" type="x-shader/x-vertex">
precision mediump float;
varying vec2 vUv;
varying float vWave;
uniform float uTime;
uniform float uAmplitude;
uniform float uProgDirection;
uniform float uMouseOverAmp;
uniform float uRadius;
uniform vec2 uMeshSize;
uniform vec2 uMousePos;
uniform bool uAnimating;
uniform bool uTranslating;
float mapVal(in float n,in float start1,in float stop1,in float start2,in float stop2){
return((n-start1)/(stop1-start1))*(stop2-start2)+start2;
}
void main(){
vec3 pos=position;
vUv=uv;
vec2 center=vUv-uMousePos;
center.x*=uMeshSize.x/uMeshSize.y;
float dist=length(center);
float radius=uRadius;
float mask=smoothstep(radius,radius*5.,dist);
float d=mapVal(mask,-1.,1.,-1.,0.);
if(uAnimating){
pos.z=sin(pos.x*5.+uTime*10.*uProgDirection)*uAmplitude;
pos.z*=2.5;
}else{
pos.z=d*uMouseOverAmp;
pos.z*=15.;
}
if(uTranslating){
pos.z=sin(pos.y*6.+uTime*10.)*uAmplitude;
pos.z*=3.5;
}
vWave=pos.z;
gl_Position=projectionMatrix*modelViewMatrix*vec4(pos,1.);
}
</script>
<script id="fragmentShader" type="x-shader/x-fragment">
precision mediump float;
varying vec2 vUv;
varying float vWave;
uniform float uTime;
uniform float uProg;
uniform float uProgDirection;
uniform sampler2D uCurrTex;
uniform sampler2D uNextTex;
uniform vec2 uMeshSize;
uniform vec2 uImageSize;
vec2 backgroundCoverUv(vec2 uv,vec2 canvasSize,vec2 textureSize){
vec2 ratio=vec2(
min((canvasSize.x/canvasSize.y)/(textureSize.x/textureSize.y),1.),
min((canvasSize.y/canvasSize.x)/(textureSize.y/textureSize.x),1.)
);
vec2 uvWithRatio=uv*ratio;
return vec2(
uvWithRatio.x+(1.-ratio.x)*.5,
uvWithRatio.y+(1.-ratio.y)*.5
);
}
void main(){
vec2 texUv=backgroundCoverUv(vUv,uMeshSize,uImageSize);
float x=uProg;
float y;
if(uProgDirection==1.)y=(x*2.+(vUv.x-1.));
else y=((x*2.)-vUv.x);
x=smoothstep(0.,1.,y);
float w=vWave;
float r1=texture2D(uCurrTex,texUv+w*.04).r;
float g1=texture2D(uCurrTex,texUv+w*.01).g;
float b1=texture2D(uCurrTex,texUv+w*-.03).b;
vec3 tex1=vec3(r1,g1,b1);
float r2=texture2D(uNextTex,texUv+w*.04).r;
float g2=texture2D(uNextTex,texUv+w*.01).g;
float b2=texture2D(uNextTex,texUv+w*-.03).b;
vec3 tex2=vec3(r2,g2,b2);
float scaleUp=(.4+.6*(1.-uProg));
float scaleDown=(.6+.4*uProg);
vec4 f1=mix(
texture2D(uCurrTex,texUv*(1.-x)*scaleUp+vec2(.15)*uProg),
texture2D(uNextTex,texUv*x*scaleDown),
x);
vec3 f2=mix(tex1,tex2,x);
vec4 final=mix(f1,vec4(f2,1.),.12);
gl_FragColor=final;
}
</script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/parallax/3.1.0/parallax.min.js"></script>
<script>
var scene = document.getElementById("scene");
var parallaxInstance = new Parallax(scene);
</script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/three.js/r121/three.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/3.5.1/gsap.min.js"></script>
<script src="https://unpkg.com/imagesloaded@4/imagesloaded.pkgd.min.js"></script>
<script src="https://unpkg.com/splitting/dist/splitting.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/tiny-emitter@2.1.0/index.min.js"></script>
<script src="./javascript/app.js"></script>
</body>
</html>
<!-- 654331939 -->