forked from Boltjazz/parallax
-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
61 lines (59 loc) · 3.51 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title> Parallax scrolling website | vanilla javascript</title>
<link rel="stylesheet" type="text/css" href="style.css">
</head>
<body>
<header>
<a href="#" class="logo">hello</a>
<!-- <img src="logo.png" class="logo" alt="logo"> -->
<!-- <img src="logo.png" class="logo"> -->
<ul>
<li><a href="#" class="active">Home</a></li>
<li><a href="#abt">About</a></li>
<li><a href="#work">Work</a></li>
<li><a href="#cont">Contact</a></li>
</ul>
</header>
<section>
<img src="stars.png" id="stars">
<img src="moon.png" id="moon">
<img src="mountains_behind.png" id="mountains_behind">
<h2 id="text"> Yash Jaiswal </h2>
<a href="#sec" id="btn">Know Me</a>
<img src="mountains_front.png" id="mountains_front">
</section>
<div class="sec" id="sec">
<h2>Hi Nice To Meet You!!</h2>
<p>Welcome to my portfolio!<br><br>
As a second year computer engineering student, I have developed a strong passion for the field of technology, particularly in the areas of full stack development, cybersecurity, and web3/blockchain. I believe that these areas are critical in shaping the future of technology and have made it my mission to become proficient in these fields.<br><br>
Throughout my journey, I have gained valuable experience in developing and implementing full stack web applications, ensuring the security of online systems, and exploring the vast world of web3 and blockchain technology.<br><br>
I am constantly seeking to improve my skills and knowledge through challenging myself with new projects and staying up to date with the latest industry trends and developments
And I am excited to share my work and experiences with you and hope that my portfolio will provide insight into my skills, dedication, and passion for the field of computer engineering.<br><br> Thank you for taking the time to explore my portfolio, and I hope that it inspires you to also pursue your passions in the world of technology.
</p>
</div>
<script>
let stars = document.getElementById('stars');
let moon = document.getElementById('moon');
let mountains_behind = document.getElementById('mountains_behind');
let text = document.getElementById('text');
let btn = document.getElementById('btn');
let mountains_front = document.getElementById('mountains_front');
let header = document.querySelector('header')
window.addEventListener('scroll', function(){
let value = window.scrollY;
stars.style.left = value * 0.25 + 'px';
moon.style.top = value * 1.05 + 'px';
mountains_behind.style.top = value * 0.5 + 'px';
mountains_front.style.top = value * 0 + 'px';
text.style.marginRight = value * 4 + 'px';
text.style.marginTop = value * 1.5 + 'px';
btn.style.marginTop = value * 1.5 + 'px';
header.style.top = value * 0.5 + 'px';
})
</script>
</body>
</html>