Install
Whether you build your website using a package manager or handle the files manually, we’ve got you covered.
Manual
Not using a package manager? No problem. Download the latest prodution build from below and place the content of the dist
folder into your project.
Use
Start by adding the dependencies to your project.
Then, add the scripts you downloaded earlier.
After that, add the HTML template. The plugin makes use of Bootstrap’s data-target
attribute to target the menu. By default, the menu will slide from the left side, as the navbar-collapse-left
class is automatically added on runtime. To change the slide in from the right, add the navbar-collapse-right
class to the targeted menu.
Finally, call the plugin.
Configure
Since the plugin is built on Bootstrap's framework, many changes can be made using the built-in utilities.
Color Schemes
The color scheme hasn’t been altered with the exception of adding a bg-none
utility to make the menu’s background transparent on the desktop version. You can still use the navbar-light
class for light background colors, or the navbar-dark
class for dark background colors, and then the bg-*
utilities to customize the background color itself.
Containers
Even though it's not required by the plugin, you can wrap the navbar in a container
or any variation to center align it on the page.
Placement
Use Bootstrap's included positioning utilities to place the navbar.
Responsive behaviors
The plugin was written to use the navbar-expand-*
utilities to determine when the menu needs to be collapsed behind a navbar-toggler
button.
Drop shadow
If you need any shadows on your menus, use the built-in Bootstrap utilities.