xxxxxxxxxx
1
<html lang="en" class="full-height">
2
3
<!--Main Navigation-->
4
<header>
5
6
<nav class="navbar fixed-top navbar-expand-lg navbar-dark scrolling-navbar">
7
<a class="navbar-brand" href="#"><strong>Navbar</strong></a>
8
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent"
9
aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
10
<span class="navbar-toggler-icon"></span>
11
</button>
12
<div class="collapse navbar-collapse" id="navbarSupportedContent">
13
<ul class="navbar-nav mr-auto">
14
<li class="nav-item active">
15
<a class="nav-link" href="#">Home <span class="sr-only">(current)</span></a>
16
</li>
17
<li class="nav-item">
18
<a class="nav-link" href="#">Link</a>
19
</li>
20
<li class="nav-item">
21
<a class="nav-link" href="#">Profile</a>
22
</li>
23
</ul>
24
</div>
25
</nav>
26
27
<div class="view intro-2" style="">
28
<div class="full-bg-img">
29
<div class="mask rgba-purple-light flex-center">
30
<div class="container text-center white-text wow fadeInUp">
31
<h2>This Navbar is fixed and transparent</h2>
32
<br>
33
<h5>It will always stay visible on the top, even when you scroll down</h5>
34
<p>Navbar's background will switch from transparent to solid color while scrolling down</p>
35
<br>
36
<p>Full page intro with background image will be always displayed in full screen mode, regardless of
37
device </p>
38
</div>
39
</div>
40
</div>
41
</div>
42
43
</header>
44
<!--Main Navigation-->
45
46
<!--Main Layout-->
47
<main class="text-center py-5">
48
49
<div class="container">
50
<div class="row">
51
<div class="col-md-12">
52
53
<p align="justify">Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor
54
incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation
55
ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in
56
voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non
57
proident, sunt in culpa qui officia deserunt mollit anim id est laborum. Lorem ipsum dolor sit amet,
58
consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut
59
enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
60
consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat
61
nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt
62
mollit anim id est laborum.</p>
63
64
</div>
65
</div>
66
</div>
67
68
</main>
69
<!--Main Layout-->
xxxxxxxxxx
1
.view {
2
background: url("https://mdbootstrap.com/img/Photos/Others/img (40).jpg")no-repeat center center;
3
background-size: cover;
4
}
5
6
.navbar {
7
background-color: transparent;
8
}
9
10
.top-nav-collapse {
11
background-color: #4285F4;
12
}
13
14
@media only screen and (max-width: 768px) {
15
.navbar {
16
background-color: #4285F4;
17
}
18
}
1
1
Console errors: 0