Tip component. Inspired by tipsy without the weird jQuery API.
$ npm install tip-component
- events for composition
- "auto" positioning on window resize / scroll
- fluent API
showthe tip is shownhidethe tip is hidden
Attach a Tip to an element, and display the title
attribute's contents on hover. Optionally apply a hide delay
in milliseconds.
var tip = require('tip');
tip('a[title]', { delay: 300 });Create a new tip with content being
either a string, html, element, etc.
var Tip = require('tip');
var tip = new Tip('Hello!');
tip.show('#mylink');northnorth eastnorth westsouthsouth eastsouth westeastwest
Show the tip attached to el, where el
may be a selector or element.
Hide the tip immediately or wait ms.
Use effect name. Default with Tip.effect = 'fade' for example.
MIT


