-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
109 lines (49 loc) · 1.94 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
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
<!DOCTYPE html>
<html lang="en">
<head>
<link rel="stylesheet" type="text/css" href="resources/css/style.css">
<link rel="stylesheet" type="text/css" href="vendors/css/Grid.css">
<link rel="stylesheet" type="text/css" href="vendors/css/normalize.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
</head>
<body>
<header id="home">
<nav>
<div class="row">
<a href="#home"><img src="resources/images/as-logo-sample.png" alt="logo" class="logo"></a>
<ul class="main-nav">
<li>
<a href="#section-1">Section 1</a>
</li>
<li> <a href="#section-2">Section 2</a>
</li>
<li> <a href="#section-3">Section 3</a>
</li>
<li><a href="#section-4">Section 4</a>
</li>
</ul>
</div>
</nav>
<div class="welcome-text">
<h1>Sticky Navigation</h1>
<p>Hello! In this project I've demonstrate how to make use of navigation & sticky navigation using java script.
To make use of sticky navigation I used a js library known as waypoints &
for a smooth scrolling effect I used a code snippet from css tricks.</p>
</div>
</header>
<section class="section-01 js--scroll-to-section-01" id="section-1">
<p>Section 1</p>
</section>
<section class="section-02" id="section-2">
<p>Section 2</p>
</section>
<section class="section-03" id="section-3">
<p>Section 3</p>
</section>
<section class="section-04" id="section-4">
<p>Section 4</p>
</section>
<script src="vendors/js/jquery.waypoints.min.js"></script>
<script src="resources/js/script.js"></script>
</body>
</html>