node package manager

tip

Simple Tip plugin

tip

Simple Tip plugin

npm i tip

online demo

var Tip = require('tip')
 
$(function() {
    var tip = Tip($('<div>tip</div>'))
    tip.attach('.target')
})

IE6+

var tip = Tip(nodelist, options)
  • stay Boolean, if true then won't hide after mouseleave
  • offsetHook Function, change raw offset

Custom style by lessc

import "tip/style.less";
 
@tip-arrow-size: 7px; // arrow size 
@tip-name: mytip; // class namespace, remember to change name in js also