-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathaboutMe.html
More file actions
65 lines (55 loc) · 2.54 KB
/
Copy pathaboutMe.html
File metadata and controls
65 lines (55 loc) · 2.54 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
<!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="aboutme.css">
</head>
<body>
<header>
<a href="#" id="notneed" class="logo">About Me</a>
<ul>
<li><a href="/index.html" class="active">Home</a></li>
<li><a href="#">Profile</a></li>
<li><a href="#">My projects</a></li>
<li><a href="/contact.html">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">
<h3 id="text">Hello Everyone</h3>
<a href="#sec" id="btn">Explore</a>
<img src="mountains_front.png" id="mountains_front">
</section>
<div class="sec" id="sec">
<!--<h2>Here we go....</h2>-->
<p>I am Nilabja Nayan Goswami.I born on 23rd January 2002 in Kolkata.I live with my father.mother and my brother in kolkata.The starting 6 years of my life i have spent in Chhattisgarh.In 2008 I came back to Kolkata and have done my primary,high schooling from there.I have persuded my higher senior secondary in pure science stream.After my +2 I took admission in Kalinga Institute of Industrial Technology in 2020 in Electronics and Telecommunication Engineering Branch.Along with my engineering studies i have learnt web development and trying to get better at it.Talking about my hobbies, I love Astronomy,playing games, and little bit of singing.<br><br>
So this is about me in a brief... <br><br>
THANK YOU!!!
</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';
})
</script>
</body>
</html>