-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathabout.html
94 lines (78 loc) · 3.09 KB
/
about.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title> About- Aniruddha khedekar | Portfolio by UK</title>
<meta name="author" content="UDBHV @studio_21:4281:22">
<!-- stylesheet -->
<link rel="stylesheet" href="css/styles.css" />
<!-- greensock -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/2.1.3/TweenMax.min.js"></script>
<!-- locomotive-scroll -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/locomotive-scroll@3.2.5/dist/locomotive-scroll.min.css">
<script src="https://cdn.jsdelivr.net/npm/locomotive-scroll@3.2.5/dist/locomotive-scroll.min.js"></script>
</head>
<body id="js-scroll">
<div class="wrapper">
<!-- menu -->
<nav class="menu">
<div class="menu__logo">
<a href="index.html">kd</a>
</div>
<div class="menu__items">
<div class="menu__items-link"><a href="index.html">Projects</a></div>
<div class="menu__items-link active"><a href="about.html">About</a></div>
</div>
</nav>
<!-- about-section -->
<div class="about__container" data-scroll-section>
<p class="about__container-data" data-scroll>Hi! My name is <span>Aniruddha khedekar </span> and I'm a digital
Photographer, born in <span>Mumbai,</span> India.</p>
<p data-scroll>If you have any questions or would like to have a chat, don't hesitate to <span
class="about__container-contact-link"><a href="https://www.instagram.com/picture_concerto/" target="_blank">get
in touch.</a></span></p>
<p class="about__container-link" data-scroll><a href="https://www.youtube.com/watch?v=4mYGzX7sB_A"
target="_blank">Check out my attempt of Cinematographer <br> world is my playground</a>.</p>
</div>
<div class="cursor-follow"></div>
</div>
<script src="js/script.js"></script>
<script>
// smooth scroll
const scroll = new LocomotiveScroll({
el: document.querySelector('#js-scroll'),
smooth: true,
smoothMobile: true,
inertia: 0.75
});
// div following mouse
TweenMax.from(".cursor-follow", 2, {
delay: 1,
opacity: 0
});
follower = document.querySelector('.cursor-follow');
posX = 0;
posY = 0;
mouseX = 0;
mouseY = 0;
TweenMax.to({}, 0.016, {
repeat: -1,
onRepeat: function () {
posX += (mouseX - posX) / 9;
posY += (mouseY - posY) / 9;
TweenMax.set(follower, {
css: {
left: posX - 40,
top: posY - 40,
}
});
}
});
document.addEventListener("mousemove", function (e) {
mouseX = e.pageX;
mouseY = e.pageY;
});
</script>
</body>
</html>