Lightweight Tooltip Plugin With jQuery And Title Attribute - minimalTips
File Size: | 6.64 KB |
---|---|
Views Total: | 2298 |
Last Update: | |
Publish Date: | |
Official Website: | Go to website |
License: | MIT |

minimalTips is a minimal, clean, animated jQuery tooltip plugin that uses native title attribute and works with any HTML tags.
How to use it:
1. Insert the jQuery minimalTips plugin's files into the document which has jQuery library loaded.
<link rel="stylesheet" href="jquery.minimalTips.css"> <script src="https://code.jquery.com/jquery-1.12.4.min.js" integrity="sha384-nvAa0+6Qg9clwYCGGPpDQLVpLNn0fRaROjHqs13t4Ggj3Ez50XnGQqc/r8MhnRDZ" crossorigin="anonymous"> </script> <script src="jquery.minimalTips.js"></script>
2. Initialize the tooltip plugin on document ready and we're ready to go.
$(function(){ $.minimalTips(); });
3. Create a custom tooltip for a normal link using the native title
attribute.
<a title="This is a tooltip"> Basic </a>
4. Add the mintip
class if you want to use other html tags.
<span class="mintip" title="This is a tooltip"> Span Element </span>
5. Override the default CSS rules to create your own tooltip styles.
#MinimalTip { font-family: Helvetica, Sans-Serif; font-size: 12px; color: #EEE; border: 1px solid #000; background: #222; position: absolute; padding: 2px 5px; display: none; max-width: 260px; z-index: 3001; /* Aumente ou diminua se for necessário */ box-shadow: 1px 1px 2px #000; -moz-box-shadow: 1px 1px 2px #000; -webkit-box-shadow: 1px 1px 2px #000; filter: progid:DXImageTransform.Microsoft.Shadow(strength = 1, direction = 135, color = '#000000'); -ms-filter: "progid:DXImageTransform.Microsoft.Shadow(strength = 1, Direction = 135, Color = '#000000')"; opacity: 0.9; -ms-filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=90); filter: alpha(opacity=90); -moz-opacity:0.9; -webkit-opacity:0.9 }
This awesome jQuery plugin is developed by vinicius-stutz. For more Advanced Usages, please check the demo page or visit the official website.