1.0.2 • Published 6 years ago

ttips v1.0.2

Weekly downloads
3
License
MIT
Repository
github
Last release
6 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

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago

0.3.3

8 years ago

0.3.2

8 years ago

0.3.1

8 years ago

0.3.0

8 years ago

0.2.8

8 years ago

0.2.7

9 years ago

0.2.6

9 years ago

0.2.5

9 years ago

0.2.5-1

9 years ago

0.2.5-0

9 years ago

0.2.4

9 years ago

0.2.3

9 years ago

0.2.2

9 years ago

0.2.2-0

9 years ago

0.2.1

9 years ago

0.1.1-3

9 years ago

0.1.1-2

9 years ago

0.1.1-1

9 years ago

0.1.1-0

9 years ago

0.1.0

9 years ago

0.0.5-1

9 years ago

0.0.5-0

9 years ago

0.0.4

9 years ago

0.0.3-1

9 years ago

0.0.3-0

9 years ago

0.0.2

9 years ago

0.0.1

9 years ago