1.0.2 • Published 7 years ago

ttips v1.0.2

Weekly downloads
3
License
MIT
Repository
github
Last release
7 years ago

ttips

Build Status Inline docs Dependency Status

Simple and lightweight tooltip module.

Docs and Examples

minified ~ 3kb, minified and gzipped ~ 1kB

Install

npm i ttips

Usage

HTML:

Put a containter with a .ttip class behind the element that should trigger the tooltip (previousElementSibling selects the tooltip target).

<div>Tooltip target</div>
<div class="ttip">Tooltip content</div>

<!-- Position the tooltip via data-attribute, can be 'left', 'top' or 'right' and defaults to bottom -->
<div>Tooltip target</div>
<div class="ttip" data-ttip-position="left">Tooltip content</div>

JS:

import ttips from 'ttips'

ttips.initialize();    // initialize the tooltips
ttips.update();        // update the tooltips, e.g after a dom change
ttips.hide();          // hide tooltip, does nothing if no tooltip is visible
ttips.destroy();       // destroy ...

Licence

MIT

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago

0.3.3

10 years ago

0.3.2

10 years ago

0.3.1

10 years ago

0.3.0

10 years ago

0.2.8

10 years ago

0.2.7

10 years ago

0.2.6

10 years ago

0.2.5

10 years ago

0.2.5-1

10 years ago

0.2.5-0

10 years ago

0.2.4

10 years ago

0.2.3

10 years ago

0.2.2

10 years ago

0.2.2-0

10 years ago

0.2.1

10 years ago

0.1.1-3

10 years ago

0.1.1-2

10 years ago

0.1.1-1

10 years ago

0.1.1-0

10 years ago

0.1.0

10 years ago

0.0.5-1

10 years ago

0.0.5-0

10 years ago

0.0.4

10 years ago

0.0.3-1

10 years ago

0.0.3-0

10 years ago

0.0.2

10 years ago

0.0.1

10 years ago