bootnavbar
bootnavbar copied to clipboard
Bootstrap 5 / 4 multilevel dropdown navbar (multilevel menu) on hover
BootNavbar
Table of contents:
- Introduction
- Preview
- Demo
- Requirement
- Download
- BootNavbar CDN
- CSS
- JS
- How to Use
- Options
Introduction
Bootstrap 5 Responsive Navbar with Multi-level Dropdowns This is a fully responsive multilevel dropdown (Treeview menu) navbar opened on hover.
:warning: If you are using Boostrap 4 use v1.0.2 and read docs
Preview

BootNavbar Demo
Requirement
- boostrap 5
- animated.css (optional)
Download
BootNavbar CDN
css
<link
rel="stylesheet"
href="https://cdn.jsdelivr.net/gh/kmlpandey77/[email protected]/css/bootnavbar.css"
/>
js
<script src="https://cdn.jsdelivr.net/gh/kmlpandey77/[email protected]/js/bootnavbar.js"></script>
How to use
To use BootNavbar on your website, simply drop the stylesheet into your document's <head>.
<head>
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/4.1.1/animate.min.css"
/>
<link rel="stylesheet" href="css/bootstrap.min.css" />
<link rel="stylesheet" href="css/bootnavbar.css" />
</head>
And, simply drop the JS into your document's <body>.
<body>
... ...
<script src="js/bootstrap.min.js"></script>
<script src="js/bootnavbar.js"></script>
<script>
new bootnavbar();
</script>
</body>
And, HTML.
<nav class="navbar navbar-expand-lg navbar-light bg-light" id="main_navbar">
... ...
</nav>
Options
Selector
Key: selector
Type: String
Default: main_navbar
selector must be in id tag
Animation
Key: animation
Type: Boolean
Default: true
Enable/Disable animation effect
Animate In
Key: animateIn
Type: String
Default: 'animate__fadeIn'
Value can be 'animate__slideInUp','animate__zoomIn' and for more option visit animate.css