jQuery Plugin For Tooltip Style Floating Navigation jQTipnav - Download jQuery Plugin For Tooltip Style Floating Navigation - jQTipnav

Download jQuery Plugin For Tooltip Style Floating Navigation – jQTipnav

Posted on

This time I will share jQuery Plugin and tutorial about jQuery Plugin For Tooltip Style Floating Navigation – jQTipnav, hope it will help you in programming stack.

jQuery Plugin For Tooltip Style Floating Navigation jQTipnav - Download jQuery Plugin For Tooltip Style Floating Navigation - jQTipnav
File Size: 15.6 KB
Views Total: 757
Last Update:
Publish Date:
Official Website: Go to website
License: MIT
   



jQTipnav is a jQuery plugin for appending a tooltip-style, scrollable navigation bar to any html element that support both hover and click events.

How to use it:

1. Include jQuery library and the jQuery jQTipnav plugin on the webpage as usual.

1 <script src="//code.jquery.com/jquery-1.11.3.min.js"></script>
2 <script src="jqtipnav.min.js"></script>

2. Create a navigation list.

1 <ul class="tipnav">
2   <li><a href=""><a href="https://www.jqueryscript.net/menu/">Menu</a>  1</a> |</li>
3   <li><a href="">Menu 2 </a> |</li>
4   <li><a href="">Menu 3</a></li>
5 </ul>

3. Append the navigation list to an action element (e.g. a tag) that triggers on hover.

1 $('.tipnav').tipnav({
2   'action_element': $('#SELECTOR')
3 });

4. Add your own CSS styles to the navigation.

01 [data-jqtipnav] {
02 background:#fff;
03 padding:.4em;
04 border:1px solid #000
05 }
06  
07 [data-jqtipnav] ul { list-style-type: none }
08  
09 [data-jqtipnav] ul, [data-jqtipnav] ul li {
10   margin: 0;
11   padding: 0;
12   display: inline
13 }
14  
15 [data-jqtipnav] ul li {
16   font-size: .8em;
17   padding: 3px 2px
18 }
19  
20 [data-jqtipnav] ul li a {
21   text-decoration: none;
22   color: inherit
23 }
24  
25 [data-jqtipnav] ul li a:visited { color: inherit }
26  
27 [data-jqtipnav] ul li a:hover { text-decoration: underline }

5. Modify the default fade-out animation speed.

1 $('.tipnav').tipnav({
2   'action_element': $('#SELECTOR'),
3   'fade_time': 200
4 });

6. Change the default trigger event ‘hover’ to ‘click’.

1 $('.tipnav').tipnav({
2   'action_element': $('#SELECTOR'),
3   'fade_time': 200,
4   'trigger_event': 'click'
5 });

Change log:

2016-02-05

  • change default fade time to 500ms

2016-02-03

  • fix positioning

2016-01-15

  • small code refactoring

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




source : jqueryscript.net