# tooltip-module

> Helpful javascript tooltip class

Latest version **1.0.2** (published 2015-05-11) · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install tooltip-module
pnpm add tooltip-module
yarn add tooltip-module
bun add tooltip-module
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 1.0.2 |
| Published | 2015-05-11 |
| First published | 2015-05-11 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Mark Kennedy |
| Maintainers | mkay581 |

## Links

- npm: https://www.npmjs.com/package/tooltip-module
- Repository: https://github.com/mkay581/tooltip
- Issues: https://github.com/mkay581/tooltip/issues
- npm.io page: https://npm.io/package/tooltip-module

## Dependencies (1)

- [element-kit](https://npm.io/package/element-kit.md) ^0.6.0

## Recent versions

- 1.0.2 (latest) — 2015-05-11
- 1.0.1 — 2015-05-11
- 1.0.0 — 2015-05-11

## README

# Tooltip

Create simple or advanced, high performant Tooltips with minimal javascript and markup.
This library is built using native vanilla javascript which means super fast performance. 
Supports IE10+, all major browsers and even mobile.

## Usage

Create your Tooltip html:

```html
<div class="my-tooltip">My Tooltip Content</div>
<button class="my-tooltip-toggle-btn">Toggle</button>
```

Then activate your tooltip with the following: 

```javascript
var tooltip = new Tooltip({
    el: document.body.getElementsByClassName('my-modal'),
    activeClass: 'my-tooltip-active',
    triggerClass: 'my-tooltip-toggle-btn'
});

tooltip.show(); // show the tooltip
tooltip.hide(); // hide the tooltip
```

---
_Source: https://npm.io/package/tooltip-module · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
