|
2 | 2 |
|
3 | 3 | 
|
4 | 4 |
|
5 |
| -Table of contents: |
6 |
| -* [Introduction](#introduction) |
7 |
| -* [Preview](#preview) |
8 |
| -* [Demo](#bootnavbar-demo) |
9 |
| -* [Requirement](#requirement) |
10 |
| -* [Download](#Download) |
11 |
| -* [BootNavbar CDN](#bootnavbar-cdn) |
12 |
| - * [CSS](#css) |
13 |
| - * [JS](#js) |
14 |
| -* [How to Use](#how-to-use) |
15 |
| -* [Options](#options) |
16 |
| - |
| 5 | +**Table of contents:** |
| 6 | + |
| 7 | +- [Introduction](#introduction) |
| 8 | +- [Preview](#preview) |
| 9 | +- [Demo](#bootnavbar-demo) |
| 10 | +- [Requirement](#requirement) |
| 11 | +- [Download](#Download) |
| 12 | +- [BootNavbar CDN](#bootnavbar-cdn) |
| 13 | + - [CSS](#css) |
| 14 | + - [JS](#js) |
| 15 | +- [How to Use](#how-to-use) |
| 16 | +- [Options](#options) |
17 | 17 |
|
18 | 18 | ## Introduction
|
19 | 19 |
|
20 |
| -> Bootstrap 5 Responsive Navbar with Multi-level Dropdowns \ |
| 20 | +> Bootstrap 5 Responsive Navbar with Multi-level Dropdowns |
21 | 21 | > This is a fully responsive multilevel dropdown (Treeview menu) navbar opened on hover.
|
22 | 22 |
|
23 |
| -use [v1.0.2](https://github.com/kmlpandey77/bootnavbar/releases/tag/v1.0.2) for Bootstrap 4 |
24 |
| - |
25 |
| - |
| 23 | +> :warning: **If you are using Boostrap 4** use [v1.0.2](https://github.com/kmlpandey77/bootnavbar/releases/tag/v1.0.2) and read [docs](./README-BOOTSTRAP-4.md) |
26 | 24 |
|
27 | 25 | ## Preview
|
| 26 | + |
28 | 27 | 
|
29 | 28 |
|
30 | 29 | ## BootNavbar Demo
|
31 |
| -[View Demo](https://kmlpandey77.github.io/bootnavbar) |
32 | 30 |
|
| 31 | +[View Demo](https://kmlpandey77.github.io/bootnavbar) |
33 | 32 |
|
34 | 33 | ## Requirement
|
35 |
| - boostrap 5 |
36 |
| - animated.css |
| 34 | + |
| 35 | +- boostrap 5 |
| 36 | +- animated.css (optional) |
37 | 37 |
|
38 | 38 | ## Download
|
| 39 | + |
39 | 40 | [Download source](https://github.com/kmlpandey77/bootnavbar/archive/refs/tags/v1.1.0.zip)
|
40 | 41 |
|
41 | 42 | ## BootNavbar CDN
|
42 | 43 |
|
43 | 44 | #### css
|
44 |
| -```html |
45 |
| -<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/kmlpandey77/bootnavbar/css/bootnavbar.css"> |
46 | 45 |
|
| 46 | +```html |
| 47 | +<link |
| 48 | + rel="stylesheet" |
| 49 | + href="https://cdn.jsdelivr.net/gh/kmlpandey77/bootnavbar@v1.1.0/css/bootnavbar.css" |
| 50 | +/> |
47 | 51 | ```
|
48 | 52 |
|
49 | 53 | #### js
|
50 |
| -```html |
51 |
| -<script src="https://cdn.jsdelivr.net/gh/kmlpandey77/bootnavbar/js/bootnavbar.js"></script> |
52 |
| -``` |
53 | 54 |
|
| 55 | +```html |
| 56 | +<script src="https://cdn.jsdelivr.net/gh/kmlpandey77/bootnavbar@v1.1.0/js/bootnavbar.js"></script> |
| 57 | +``` |
54 | 58 |
|
55 | 59 | ## How to use
|
| 60 | + |
56 | 61 | To use BootNavbar on your website, simply drop the stylesheet into your document's `<head>`.
|
57 | 62 |
|
58 | 63 | ```html
|
59 | 64 | <head>
|
60 |
| - <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/3.7.2/animate.min.css"> |
61 |
| - <link rel="stylesheet" href="css/bootstrap.min.css"> |
62 |
| - <link rel="stylesheet" href="css/bootnavbar.css"> |
| 65 | + <link |
| 66 | + rel="stylesheet" |
| 67 | + href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/4.1.1/animate.min.css" |
| 68 | + /> |
| 69 | + <link rel="stylesheet" href="css/bootstrap.min.css" /> |
| 70 | + <link rel="stylesheet" href="css/bootnavbar.css" /> |
63 | 71 | </head>
|
64 | 72 | ```
|
65 | 73 |
|
66 |
| - |
67 | 74 | And, simply drop the JS into your document's `<body>`.
|
68 | 75 |
|
69 | 76 | ```html
|
70 | 77 | <body>
|
71 |
| - ... |
72 |
| - ... |
73 |
| - |
74 |
| - <script src="https://code.jquery.com/jquery-3.3.1.min.js"></script> |
75 |
| - <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.3/umd/popper.min.js"></script> |
76 |
| - <script src="js/bootstrap.min.js"></script> |
77 |
| - <script src="js/bootnavbar.js" ></script> |
78 |
| - <script> |
79 |
| - $(function () { |
80 |
| - $('#bootnavbar').bootnavbar({ |
81 |
| - //options |
82 |
| -
|
83 |
| - //animation: false |
84 |
| -
|
85 |
| - }); |
86 |
| - }) |
87 |
| - </script> |
88 |
| -<body> |
| 78 | + ... ... |
| 79 | + |
| 80 | + <script src="js/bootstrap.min.js"></script> |
| 81 | + <script src="js/bootnavbar.js"></script> |
| 82 | + <script> |
| 83 | + $(function () { |
| 84 | + new bootnavbar(); |
| 85 | + }); |
| 86 | + </script> |
| 87 | +</body> |
89 | 88 | ```
|
90 | 89 |
|
91 |
| -And, `HTML`. |
| 90 | +And, `HTML`. |
92 | 91 |
|
93 | 92 | ```html
|
94 |
| -<nav class="navbar navbar-expand-lg navbar-light bg-light" id="bootnavbar"> |
95 |
| - ... |
96 |
| - ... |
| 93 | +<nav class="navbar navbar-expand-lg navbar-light bg-light" id="main_navbar"> |
| 94 | + ... ... |
97 | 95 | </nav>
|
98 | 96 | ```
|
99 | 97 |
|
100 |
| - |
101 | 98 | ## Options
|
102 | 99 |
|
103 |
| -**animation** |
| 100 | +**Selector** |
| 101 | +Key: `selector` |
| 102 | +Type: `String` |
| 103 | +Default: `main_navbar` |
| 104 | +`selector` must be in `id` tag |
104 | 105 |
|
| 106 | +**Animation** |
| 107 | +Key: `animation` |
105 | 108 | Type: `Boolean`
|
106 |
| - |
107 | 109 | Default: `true`
|
108 |
| - |
109 | 110 | Enable/Disable animation effect
|
110 | 111 |
|
111 |
| - |
112 |
| - |
113 |
| -**animateIn** |
114 |
| - |
| 112 | +**Animate In** |
| 113 | +Key: `animateIn` |
115 | 114 | Type: `String`
|
116 |
| - |
117 | 115 | Default: `'fadeIn'`
|
118 |
| - |
119 |
| -Value: `'slideInUp'`,`'zoomIn'` |
120 |
| - |
121 |
| - |
122 |
| - |
123 |
| -View more option in [animate.css](https://daneden.github.io/animate.css) |
| 116 | +Value can be `'slideInUp'`,`'zoomIn'` and for more option visit [animate.css](https://daneden.github.io/animate.css) |
0 commit comments