Adaptive Tooltip Popup Plugin With jQuery AdapTip - Download Adaptive Tooltip Popup Plugin With jQuery - AdapTip

Download Adaptive Tooltip Popup Plugin With jQuery – AdapTip

Posted on

This time I will share jQuery Plugin and tutorial about Adaptive Tooltip Popup Plugin With jQuery – AdapTip, hope it will help you in programming stack.

Adaptive Tooltip Popup Plugin With jQuery AdapTip - Download Adaptive Tooltip Popup Plugin With jQuery - AdapTip
File Size: 8.42 KB
Views Total: 1682
Last Update:
Publish Date:
Official Website: Go to website
License: MIT
   

Just another jQuery based tooltip popup plugin which has the ability to automatically set the placement direction based on the position of the matched element.

How to use it:

1. Add jQuery library and the jQuery AdapTip plugin’s JS & CSS files to the webpage.

1 <link href="src/style.adaptip.css" rel="stylesheet">
2 <script src="//code.jquery.com/jquery.min.js"></script>
3 <script src="src/jquery.adaptip.js"></script>

2. Add tooltip title and content to element using data-tp attributes as follows.

1 <span data-tp-title="<a href="https://www.jqueryscript.net/tooltip/">Tooltip</a> Title"
2       data-tp-desc="Tooltip Content">
3       Hover Me
4 </span>

3. Just call the function and we’re done.

1 $("span").adapTip();

4. Specify the placement direction of your tooltips.

1 $("span").adapTip({
2  
3   // top, bottom, left, right, top right, top left, right bottom, left bottom
4   "placement": "auto"
5    
6 });

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

source : jqueryscript.net