Create A Simple Nav Bar with jQuery CSS OA Navbar - Download Create A Simple Nav Bar with jQuery and CSS - OA Navbar

Download Create A Simple Nav Bar with jQuery and CSS – OA Navbar

Posted on

This time I will share jQuery Plugin and tutorial about Create A Simple Nav Bar with jQuery and CSS – OA Navbar, hope it will help you in programming stack.

Create A Simple Nav Bar with jQuery CSS OA Navbar - Download Create A Simple Nav Bar with jQuery and CSS - OA Navbar
File Size: 587 KB
Views Total: 3438
Last Update:
Publish Date:
Official Website: Go to website
License: MIT
   

OA Navbar is a simplest jQuery plugin that lets you create a nice clean horizontal navigation bar using JavaScript, scss and sass.

How to use it:

1. Load the jQuery OA Navbar plugin’s stylesheet in the header and the oa-navbar.js script in the footer after jQuery library.

1 <link href="css/oa-navbar.css" rel="stylesheet">
2 <script src="//code.jquery.com/jquery-1.11.3.min.js"></script>
3 <script src="res/oa-navbar.js"></script>

2. Markup html structure.

1 <div class="navbar">
2   <div class="item">Home</div>
3   <div class="item active">Plugins</div>
4   <div class="item">Services</div>
5   <div class="item">Blog</div>
6   <div class="item">Contact</div>
7   <div class="item">About</div>
8 </div>

3. Initialize the nav bar plugin.

1 $('.navbar').OAnavbar ();

4. Customize the plugin in oa-navbar.scss.

01 // container width
02 $mainWidth:      960px;
03  
04 // container background color
05 $mainBackground: rgba(233, 234, 237, 1);
06  
07 /* navbar */
08  
09 // background color of the nav bar
10 $navbarBackgroundColor: rgba(233, 234, 237, 1);
11  
12 // height
13 $navbarHeight:          40px;
14  
15 // CSS margin-top
16 $navMarginTop:          0;
17  
18 // CSS margin-bottom
19 $navMarginBottom:       10px;
20  
21 /* navbar items */
22  
23 // CSS margin-top
24 $navbarItemMarginTop:    8px;
25  
26 // CSS margin-right
27 $navbarItemMarginRight:  2px;
28  
29 // CSS margin-bottom
30 $navbarItemMarginBottom: 5px;
31  
32 // CSS margin-left
33 $navbarItemMarginLeft:   2px;
34  
35 // border color
36 $lineColor: rgba(162, 162, 162, 1);
37  
38 // arrow size
39 $arrowSize: 7px; 

Change log:

2016-11-07

  • bugfix

2016-06-14

  • bugfix

This awesome jQuery plugin is developed by comdan66. For more Advanced Usages, please check the demo page or visit the official website.

source : jqueryscript.net