Lightweight Tooltip Plugin With jQuery And Title Attribute - minimalTips

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

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="" 
<script src="jquery.minimalTips.js"></script>

2. Initialize the tooltip plugin on document ready and we're ready to go.




3. Create a custom tooltip for a normal link using the native title attribute.

<a title="This is a tooltip">

4. Add the mintip class if you want to use other html tags.

<span class="mintip" title="This is a tooltip">
  Span Element

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;
  filter: alpha(opacity=90);

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