Easy HTML5 Tooltip Plugin For jQuery tooltip js - Download Easy HTML5 Tooltip Plugin For jQuery - tooltip.js

Download Easy HTML5 Tooltip Plugin For jQuery – tooltip.js

Posted on

This time I will share jQuery Plugin and tutorial about Easy HTML5 Tooltip Plugin For jQuery – tooltip.js, hope it will help you in programming stack.

Easy HTML5 Tooltip Plugin For jQuery tooltip js - Download Easy HTML5 Tooltip Plugin For jQuery - tooltip.js
File Size: 5.83 KB
Views Total: 1442
Last Update:
Publish Date:
Official Website: Go to website
License: MIT
   

tooltip.js is a simple, lightweight jQuery plugin which attaches a customizable HTML5 tooltip to DOM elements when hovering.

How to use it:

1. Load the required stylesheet jquery.tooltip.css to style your tooltips.

1 <link rel="stylesheet" href="jquery.tooltip.css">

2. Load jQuery library and the jQuery tooltip.js script at the end of the document.

1 <script src="//code.jquery.com/jquery.min.js"></script>
2 <script src="jquery.tooltip.js"></script>

3. Add the data-tooltip attribute to the DOM element and specify the tooltip content using the data-options.

1 <div data-tooltip
2      data-options='{"content": "<a href="https://www.jqueryscript.net/tooltip/">Tooltip</a>"}'>

4. All default plugin options.

01 // up, down, left, right
02 direction: 'up',
03  
04 // tooltip title
05 title    : '',
06  
07 // offsets
08 // revise = {left: 0, top: 0}
09 revise:    {},
10  
11 // tooltip content
12 contenet : '',
13  
14 // additonal CSS class
15 addClass : ''

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

source : jqueryscript.net