-
Notifications
You must be signed in to change notification settings - Fork 21
Expand file tree
/
Copy pathindex.html
More file actions
430 lines (394 loc) · 13.4 KB
/
index.html
File metadata and controls
430 lines (394 loc) · 13.4 KB
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
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
<!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" />
<meta name="author" content="ig: @harrnish / @codegridweb" />
<title>A PORTFOLIO FOR PHOTOGRAPHER BY CODEGRID</title>
<link rel="stylesheet" href="style.css" />
<!-- ANIMEJS -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/animejs/2.0.2/anime.min.js"></script>
<!-- JQUERY -->
<script src="https://code.jquery.com/jquery-3.4.1.js"></script>
<!-- GSAP -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/2.1.2/TweenMax.min.js"></script>
<!-- BOOTSTRAP -->
<link
rel="stylesheet"
href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css"
/>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/js/bootstrap.min.js"></script>
<!-- FONTS -->
<link
href="https://fonts.googleapis.com/css?family=Cormorant:300,300i,400,400i,500,500i,600,600i,700,700i&display=swap"
rel="stylesheet"
/>
<link
href="https://fonts.googleapis.com/css?family=Cinzel&display=swap"
rel="stylesheet"
/>
<!-- IONICONS -->
<script src="https://unpkg.com/ionicons@4.5.10-0/dist/ionicons.js"></script>
<!-- SCROLL REVEAL ANIMATIONS -->
<link
rel="stylesheet"
href="https://cdn.rawgit.com/daneden/animate.css/v3.1.0/animate.min.css"
/>
<script src="https://cdn.rawgit.com/matthieua/WOW/1.0.1/dist/wow.min.js"></script>
<!-- SIMPLE PARALLAX -->
<script src="https://cdn.jsdelivr.net/npm/simple-parallax-js@5.0.2/dist/simpleParallax.min.js"></script>
</head>
<body>
<!-- HERO SECTION -->
<a name="home"></a>
<div class="wrapper">
<section class="hero-section">
<!-- LOGO -->
<div class="hero-logo">
RC
</div>
<!-- TOGGLE BUTTON -->
<div class="menu-toggle">
<ion-icon name="menu"></ion-icon>
</div>
<!-- SOCIAL MEDIA ICONS -->
<div class="media">
<ul>
<li>
<a href="#"><ion-icon name="logo-facebook"></ion-icon></a>
</li>
<li>
<a href="#"><ion-icon name="logo-instagram"></ion-icon></a>
</li>
<li>
<a href="#"><ion-icon name="logo-twitter"></ion-icon></a>
</li>
</ul>
</div>
<!-- VIEW PHOTOS LINK -->
<div class="view-photos">
<a href="#projects">view photos</a>
</div>
<!-- HERO-IMAGE -->
<div class="hero-img">
<img src="hero-bg.jpg" class="hero-img-parallax" />
</div>
<!-- HERO-TITLE -->
<div class="hero-title">
<h1>Ramon Cartel</h1>
</div>
<div class="overlay">
<div class="close-btn">
<ion-icon name="close"></ion-icon>
</div>
<div class="menu">
<ul>
<li>
<a href="#home">Home</a>
</li>
<li>
<a href="#about">About</a>
</li>
<li>
<a href="#projects">Projects</a>
</li>
<li>
<a href="#contact">Contact</a>
</li>
</ul>
</div>
</div>
</section>
<a name="about"></a>
<section class="about-section">
<div class="container">
<div class="row">
<div class="about-heading col-lg-6">
<h1 class="wow fadeInUp" data-wow-delay="0.2s">About</h1>
</div>
<div class="about-content col-lg-6">
<h3 class="wow fadeInUp" data-wow-delay="0.3s">
Lorem ipsum, dolor sit amet consectetur adipisicing elit.
Nesciunt esse autem hic!
</h3>
<p class="wow fadeInUp" data-wow-delay="0.4s">
Lorem ipsum dolor, sit amet consectetur adipisicing elit. Dolore
asperiores voluptates, tenetur incidunt libero at aut culpa
atque ab repellat deserunt ullam eaque eum.
</p>
<p class="wow fadeInUp" data-wow-delay="0.5s">
Lorem ipsum dolor sit amet consectetur adipisicing elit.
Recusandae quod magnam sequi enim quo laudantium soluta
blanditiis quia consectetur, expedita temporibus, cum officiis
totam doloremque unde harum dolor, veritatis quae sunt!
Repellendus, qui. Corporis voluptas optio doloribus, at quidem
cumque?
</p>
<div class="about-link wow fadeInUp" data-wow-delay="0.6s">
<a href="#contact">MORE INFO</a>
</div>
</div>
</div>
</div>
</section>
<a name="projects"></a>
<section class="project-section">
<div class="container-fluid">
<div class="container">
<div class="row">
<div class="col-lg-6">
<div class="arrow-down">
<ion-icon
name="arrow-down"
class="wow fadeInUp"
data-wow-delay="0.2s"
></ion-icon>
</div>
</div>
<div class="project-heading col-lg-6">
<h1 class="wow fadeInUp" data-wow-delay="0.3s">CAPTURES</h1>
<p class="wow fadeInUp" data-wow-delay="0.4s">
Lorem ipsum dolor sit amet consectetur adipisicing elit.
Aliquam quaerat sunt architecto veritatis suscipit nostrum
amet dicta ut, nobis modi.
</p>
</div>
</div>
</div>
<div class="projects">
<div class="row project-row">
<div class="project project-1 col-lg-6">
<img
src="project-1.jpg"
class="project-1-img project-img img-responsive fit-image"
/>
</div>
<div class="project project-2 col-lg-6">
<img
src="project-2.jpg"
class="project-2-img project-img img-responsive fit-image"
/>
</div>
</div>
<div class="row project-row">
<div class="project project-3 col-lg-6">
<img
src="project-3.jpg"
class="project-3-img project-img img-responsive fit-image"
/>
</div>
<div class="project project-4 col-lg-6">
<img
src="project-4.jpg"
class="project-4-img project-img img-responsive fit-image"
/>
</div>
</div>
<div class="row project-row">
<div class="project project-5 col-lg-6">
<img
src="project-5.jpg"
class="project-5-img project-img img-responsive fit-image"
/>
</div>
<div class="project project-6 col-lg-6">
<img
src="project-6.jpg"
class="project-6-img project-img img-responsive fit-image"
/>
</div>
</div>
</div>
</div>
</section>
<a name="contact"></a>
<section class="social-media">
<div class="container">
<div class="row">
<div class="sm-heading col-lg-6">
<h1 class="wow fadeInUp" data-wow-delay="0.2s">Reach out</h1>
</div>
<div class="sm-content col-lg-6">
<h3 class="wow fadeInUp" data-wow-delay="0.4s">
hello@ramoncartel.com
</h3>
<p class="wow fadeInUp" data-wow-delay="0.5s">
Lorem ipsum dolor sit amet, consectetur adipisicing elit.
Incidunt quo similique eaque ducimus quibusdam, dolorum
reprehenderit cumque. Dolorem, placeat. Similique!
</p>
<p class="wow fadeInUp" data-wow-delay="0.6s">
Lorem ipsum dolor sit amet consectetur adipisicing elit.
Distinctio ducimus natus hic dolorem voluptate dolore officiis
neque aperiam similique! Obcaecati vel et atque nesciunt quia
quis expedita nulla, cum autem eius itaque incidunt, ut delectus
vitae. Cupiditate minima debitis aliquam!
</p>
</div>
</div>
<div class="col-lg-12 text-left">
<div class="social-icons">
<ul>
<li class="wow fadeInUp" data-wow-delay="0.7s">
<a href="#">facebook</a>
</li>
<li class="wow fadeInUp" data-wow-delay="0.8s">
<a href="#">instagram</a>
</li>
<li class="wow fadeInUp" data-wow-delay="0.9s">
<a href="#">twitter</a>
</li>
</ul>
</div>
</div>
</div>
</section>
</div>
<script>
new WOW().init();
var textWrapper = document.querySelector(".hero-title");
textWrapper.innerHTML = textWrapper.textContent.replace(
/\S/g,
"<span class='letter'>$&</span>"
);
$(document).ready(function() {
anime.timeline({ loop: false }).add({
targets: ".hero-title .letter",
translateY: [120, 0],
translateZ: 0,
opacity: [0, 1],
easing: "easeOutExpo",
duration: 1400,
delay: (el, i) => 2000 + 40 * i
});
});
var t1 = new TimelineMax({ paused: true });
TweenMax.from(".hero-logo", 2, {
y: 20,
opacity: 0,
ease: Expo.easeInOut,
delay: 1
});
TweenMax.from(".menu-toggle", 2, {
y: 20,
opacity: 0,
ease: Expo.easeInOut,
delay: 1.2
});
TweenMax.from(".view-photos", 2, {
y: 20,
opacity: 0,
ease: Expo.easeInOut,
delay: 1.4
});
TweenMax.staggerFrom(
".media ul li",
2,
{
y: 20,
opacity: 0,
ease: Expo.easeInOut,
delay: 1.6
},
0.1
);
t1.to(".overlay", 1, {
opacity: 1,
ease: Expo.easeInOut
});
t1.to(".view-photos, .media", 1, {
opacity: 0,
ease: Expo.easeInOut
});
t1.staggerFrom(
".menu ul li",
1,
{ y: 100, opacity: 0, ease: Expo.easeOut },
0.1
);
t1.reverse();
$(document).on("click", ".menu-toggle", function() {
t1.reversed(!t1.reversed());
});
$(document).on("click", ".close-btn", function() {
t1.reversed(!t1.reversed());
});
t1.reverse();
$(document).on("click", "li", function() {
t1.reversed(!t1.reversed());
});
var image = document.getElementsByClassName("hero-img-parallax");
new simpleParallax(image, {
scale: 1.8
});
var image = document.getElementsByClassName("project-1-img");
new simpleParallax(image, {
scale: 1.8
});
var image = document.getElementsByClassName("project-2-img");
new simpleParallax(image, {
scale: 1.8
});
var image = document.getElementsByClassName("project-3-img");
new simpleParallax(image, {
scale: 1.8
});
var image = document.getElementsByClassName("project-4-img");
new simpleParallax(image, {
scale: 1.8
});
var image = document.getElementsByClassName("project-5-img");
new simpleParallax(image, {
scale: 1.8
});
var image = document.getElementsByClassName("project-6-img");
new simpleParallax(image, {
scale: 1.8
});
// Select all links with hashes
$('a[href*="#"]')
// Remove links that don't actually link to anything
.not('[href="#"]')
.not('[href="#0"]')
.click(function(event) {
// On-page links
if (
location.pathname.replace(/^\//, "") ==
this.pathname.replace(/^\//, "") &&
location.hostname == this.hostname
) {
// Figure out element to scroll to
var target = $(this.hash);
target = target.length
? target
: $("[name=" + this.hash.slice(1) + "]");
// Does a scroll target exist?
if (target.length) {
// Only prevent default if animation is actually gonna happen
event.preventDefault();
$("html, body").animate(
{
scrollTop: target.offset().top
},
1000,
function() {
// Callback after animation
// Must change focus!
var $target = $(target);
$target.focus();
if ($target.is(":focus")) {
// Checking if the target was focused
return false;
} else {
$target.attr("tabindex", "-1"); // Adding tabindex for elements not focusable
$target.focus(); // Set focus again
}
}
);
}
}
});
</script>
</body>
</html>