-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
76 lines (67 loc) · 3.08 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
<!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>neha</title>
<link rel="stylesheet" href="stylesheets/firstpage.css">
<link rel="preconnect" href="https://fonts.gstatic.com">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<link rel="stylesheet" href="https://pro.fontawesome.com/releases/v5.10.0/css/all.css" integrity="sha384-AYmEC3Yw5cVb3ZcuHtOA93w35dYTsvhLPVnYs9eStHfGJvOvKxVfELGroGkvsg+p" crossorigin="anonymous"/>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Big+Shoulders+Stencil+Display&display=swap" rel="stylesheet">
<link href="https://fonts.googleapis.com/css2?family=Baloo+Tammudu+2:wght@400;600&display=swap" rel="stylesheet">
</head>
<body>
<!---------first page--------->
<section class="header">
<!--menu(navbar)-->
<nav>
<a href="index.html"><img src="img/logo2.png" alt=""></a>
<div class="navlinks" id="navlink">
<i class="fa fa-times" onclick="hidemenu()"></i>
<ul>
<li><a href="index.html">HOME </a></li>
<li><a href="content.html">EXPLORE </a></li>
<li><a href="age.html">AGE CALCULATOR</a></li>
<li><a href="weight.html">WEIGHT CALCULATOR</a></li>
<li><a href="contact.html">CONTACT US </a></li>
<li><a href="about.html">ABOUT US</a></li>
</ul>
</div>
<i class="fa fa-bars" onclick="showmenu()"></i>
</nav>
</section>
<!---------main heading of first page--------->
<div class="title">
<h1>WE EXPLORE UNKNOWN WORLDS</h1>
<h2>TO CONQURE NEW FRONTIERS</h2>
<a class="bigbtn" href="content.html">EXPLORE <i id="rock" style="color: #896dff; font-size: 1.5rem;" class="fa fa-rocket"></i></a>
</div>
</body>
<!-----------script for menu close and open-------->
<script>
var navlink = document.getElementById("navlink");
function showmenu() {
navlink.style.right = "0px";
}
function hidemenu() {
navlink.style.right = "-200px";
location.reload();
}
</script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/3.7.0/gsap.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/3.7.0/ScrollTrigger.min.js"></script>
<script>
gsap.from("#rock",{opacity:0,duration:2,repeat:-1})
gsap.to("#rock",{y:-2,duration:2,repeat:-1})
var timeline = gsap.timeline({defaults:{duration:1}})
timeline
.from("nav",{opacity:0,opacity:0})
.from(".title h1",{y:"-100%",ease:'bounce',opacity:0})
.from(".title h2",{y:"-100%",ease:'bounce',opacity:0})
.fromTo(".bigbtn",{opacity:0,scale:0,rotation:720},{opacity:1,scale:1,rotation:0})
</script>
</html>