xxxxxxxxxx
1
<nav class="navbar fixed-top navbar-expand-lg navbar-dark scrolling-navbar bg-primary">
2
<a class="navbar-brand" href="#">Navbar</a>
3
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent"
4
aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
5
<span class="navbar-toggler-icon"></span>
6
</button>
7
<div class="collapse navbar-collapse" id="navbarSupportedContent">
8
<ul class="navbar-nav mr-auto">
9
<li class="nav-item active">
10
<a class="nav-link" href="#">Home <span class="sr-only">(current)</span></a>
11
</li>
12
<li class="nav-item">
13
<a class="nav-link" href="#">Features</a>
14
</li>
15
<li class="nav-item">
16
<a class="nav-link" href="#">Pricing</a>
17
</li>
18
<li class="nav-item dropdown">
19
<a class="nav-link dropdown-toggle" id="navbarDropdownMenuLink" data-toggle="dropdown" aria-haspopup="true"
20
aria-expanded="false">Dropdown
21
</a>
22
<div class="dropdown-menu dropdown-primary" aria-labelledby="navbarDropdownMenuLink">
23
<a class="dropdown-item" href="#">Action</a>
24
<a class="dropdown-item" href="#">Another action</a>
25
<a class="dropdown-item" href="#">Something else here</a>
26
</div>
27
</li>
28
</ul>
29
<form class="form-inline">
30
<div class="md-form my-0">
31
<input class="form-control mr-sm-2" type="text" placeholder="Search" aria-label="Search">
32
</div>
33
</form>
34
</div>
35
</nav>
36
37
<!--Main layout-->
38
<main>
39
40
<div class="container-fluid">
41
42
<h1>Scroll down</h1>
43
<br>
44
<h1>Scroll down</h1>
45
<br>
46
<h1>Scroll down</h1>
47
<br>
48
<h1>Scroll down</h1>
49
<br>
50
<h1>Scroll down</h1>
51
<br>
52
<h1>Scroll down</h1>
53
<br>
54
<h1>Scroll down</h1>
55
<br>
56
<h1>Scroll down</h1>
57
<br>
58
<h1>Scroll down</h1>
59
<br>
60
<h1>Scroll down</h1>
61
<br>
62
<h1>Scroll down</h1>
63
<br>
64
<h1>Scroll down</h1>
65
<br>
66
<h1>Scroll down</h1>
67
<br>
68
<h1>Scroll down</h1>
69
<br>
70
<h1>Scroll down</h1>
71
<br>
72
<h1>Scroll down</h1>
73
<br>
74
<h1>Scroll down</h1>
75
<br>
76
<h1>Scroll down</h1>
77
<br>
78
<h1>Scroll down</h1>
79
<br>
80
<h1>Scroll down</h1>
81
<br>
82
<h1>Scroll down</h1>
83
<br>
84
<h1>Scroll down</h1>
85
<br>
86
<h1>Scroll down</h1>
87
<br>
88
<h1>Scroll down</h1>
89
<br>
90
91
</div>
92
93
</main>
94
<!--Main layout-->
xxxxxxxxxx
1
.navbar.scrolling-navbar {
2
padding-top: 12px;
3
padding-bottom: 12px;
4
-webkit-transition: background 0.5s ease-in-out,padding 0.5s ease-in-out;
5
transition: background 0.5s ease-in-out,padding 0.5s ease-in-out;
6
7
}
8
1
1
Console errors: 0