-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathindex.html
202 lines (175 loc) · 6.79 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
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>CSS NavBar Effect</title>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css"
integrity="sha384-JcKb8q3iqJ61gNV9KGb8thSsNjpSL0n8PARn9HuZOnIxN0hoP+VmmDGMN5t9UJ0Z" crossorigin="anonymous">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css"
integrity="sha384-wvfXpqpZZVQGK6TAh5PVlGOfQNHSoD2xbE+QkPxCAFlNEevoEH3Sl0sibVcOQVnN" crossorigin="anonymous">
<link rel="stylesheet" type="text/css" href="water-navbar.css">
<link rel="stylesheet" type="text/css" href="creative-navbar.css">
<link rel="stylesheet" type="text/css" href="Typing-navbar.css">
<link rel="stylesheet" type="text/css" href="Tag-list-effect.css">
<link rel="stylesheet" type="text/css" href="Amazing-NavBar-effect.css">
</head>
<body>
<!------ Water NavBar Effect------>
<section id="water-navbar">
<ul>
<li>
<a href="#" data-text="Home">Home</a>
</li>
<li>
<a href="#" data-text="About">About</a>
</li>
<li>
<a href="#" data-text="Services">Services</a>
</li>
<li>
<a href="#" data-text="Portfolio">Portfolio</a>
</li>
<li>
<a href="#" data-text="Our Team">Our Team</a>
</li>
<li>
<a href="#" data-text="Contact">Contact</a>
</li>
</ul>
</section>
<!------ Creative NavBar Effect------>
<section id="creative-navbar">
<div class="navigation">
<ul>
<li>
<a href="#" data-text="Home">Home</a>
</li>
<li>
<a href="#" data-text="About">About</a>
</li>
<li>
<a href="#" data-text="Services">Services</a>
</li>
<li>
<a href="#" data-text="Work">Work</a>
</li>
<li>
<a href="#" data-text="Team">Team</a>
</li>
<li>
<a href="#" data-text="Contact">Contact</a>
</li>
</ul>
</div>
</section>
<!------ Typing NavBar Effect------>
<section id="Typing-navbar">
<ul>
<li>
<span>×</span> <a href="#" data-text="Home">Home</a>
</li>
<li>
<span>×</span> <a href="#" data-text="About">About</a>
</li>
<li>
<span>×</span> <a href="#" data-text="Services">Services</a>
</li>
<li>
<span>×</span> <a href="#" data-text="Portfolio">Portfolio</a>
</li>
<li>
<span>×</span> <a href="#" data-text="Our Team">Our Team</a>
</li>
<li>
<span>×</span> <a href="#" data-text="Contact">Contact</a>
</li>
</ul>
</section>
<!------ Tag List NavBar Effect------>
<section id="Tag-list-effect">
<ul>
<li>Latest News</li>
<li>Related Post</li>
<li>Trending Videos</li>
</ul>
</section>
<!------ Modern Sidebar Effect------>
<section id="Modern-SideBar-effect" style="min-height: 30vh;">
<div class="flex justify-content-center align-items-center">
<h2 class="m-4 p-3">Ubuntu Sidebar Effect</h2>
<button class="btn btn-danger ml-5 p-3"><a href="index-3.html"> Click Hare </a></button>
</div>
</section>
<!------ Modern NavBar Effect------>
<section id="Modern-NavBar-effect" style="min-height: 30vh;">
<div class="flex justify-content-center align-items-center">
<h2 class="m-4 p-3">Modern NavBar Effect</h2>
<button class="btn btn-warning ml-5 p-3"><a href="index-2.html"> Click Hare </a></button>
</div>
</section>
<!---- Amazing NavBar Effect---->
<section id="Amazing-NavBar-effect">
<nav class="menu">
<header>Menu <span>×</span></header>
<ol>
<li class="menu-item"><a href="#0">Home</a></li>
<li class="menu-item"><a href="#0">About</a></li>
<li class="menu-item">
<a href="#0">Widgets</a>
<ol class="sub-menu">
<li class="menu-item"><a href="#0">Grocerry</a></li>
<li class="menu-item"><a href="#0">Discount</a></li>
<li class="menu-item"><a href="#0">Huge Sale</a></li>
</ol>
</li>
<li class="menu-item">
<a href="#0">Juice</a>
<ol class="sub-menu">
<li class="menu-item"><a href="#0">Russi</a></li>
<li class="menu-item"><a href="#0">Paneer Pyaza</a></li>
<li class="menu-item"><a href="#0">Rasbhari</a></li>
</ol>
</li>
<li class="menu-item"><a href="#0">Contact</a></li>
</ol>
<footer><button aria-label="Toggle Menu">Toggle</button></footer>
</nav>
</section>
<script src="https://code.jquery.com/jquery-3.3.1.js"></script>
<!------ Amazing NavBar Effect------>
<script>
var $els = $('.menu a, .menu header');
var count = $els.length;
var grouplength = Math.ceil(count / 3);
var groupNumber = 0;
var i = 1;
$('.menu').css('--count', count + '');
$els.each(function (j) {
if (i > grouplength) {
groupNumber++;
i = 1;
}
$(this).attr('data-group', groupNumber);
i++;
});
$('.menu footer button').on('click', function (e) {
e.preventDefault();
$els.each(function (j) {
$(this).css('--top', $(this)[0].getBoundingClientRect().top + ($(this).attr('data-group') * -15) - 20);
$(this).css('--delay-in', j * .1 + 's');
$(this).css('--delay-out', (count - j) * .1 + 's');
});
$('.menu').toggleClass('closed');
e.stopPropagation();
});
// run animation once at beginning for demo
setTimeout(function () {
$('.menu footer button').click();
setTimeout(function () {
$('.menu footer button').click();
}, (count * 100) + 500);
}, 1000);
</script>
</body>
</html>