# hint-css.js

> hint.css by jquery

Latest version **1.5.3** (published 2026-10-14) · MIT license · 0 weekly downloads

## Install

```sh
npm install hint-css.js
pnpm add hint-css.js
yarn add hint-css.js
bun add hint-css.js
```

## Health

**Score 55/100 (C)** — status: active.

Positive: no vulnerabilities; recently updated; high maintenance score.

Warnings: low downloads; no types; no esm support.

## Facts

| | |
|---|---|
| Version | 1.5.3 |
| Published | 2026-10-14 |
| First published | 2019-12-09 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 29.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 5 |
| Author | wenzhixin |
| Maintainers | wenzhixin |

## Links

- npm: https://www.npmjs.com/package/hint-css.js
- Repository: https://github.com/wenzhixin/hint-css
- Homepage: https://github.com/wenzhixin/hint-css#readme
- Issues: https://github.com/wenzhixin/hint-css/issues
- npm.io page: https://npm.io/package/hint-css.js

## Recent versions

- 1.5.3 (latest) — 2026-10-14
- 1.5.2 — 2026-03-04
- 1.5.1 — 2026-02-06
- 1.5.0 — 2024-08-01
- 1.4.0 — 2024-05-29
- 1.3.2 — 2023-07-15
- 1.3.1 — 2023-06-25
- 1.3.0 — 2023-05-29
- 1.2.0 — 2023-04-19
- 1.1.0 — 2019-12-09

## README

# hint-css.js

hint css by jQuery

## Example

* https://live.bootstrap-table.com/code/wenzhixin/1362
* https://live.bootstrap-table.com/code/wenzhixin/1361

## Install

### NPM or YARN

```bash
npm install hint-css.js
# or
yarn add hint-css.js
```

### CDN

```
<link rel="stylesheet" href="https://unpkg.com/hint-css.js@1.5.3/src/hint-css.css">
<script src="https://unpkg.com/hint-css.js@1.5.3/src/hint-css.js"></script>
```

## How to use

```
<!-- hint--bottom by default -->
<button data-hint="Tooltips">bottom</button>
<button class="hint--top" data-hint="Tooltips">top</button>
<button class="hint--left" data-hint="Tooltips">left</button>
<button class="hint--right" data-hint="Tooltips">right</button>
```

## Class

* hint--bottom
* hint--top
* hint--left
* hint--right

## Options

```js
$.hint.defaults = {
  className: null,
  delayIn: 800,
  delayOut: 100,
  fade: false,
  fallback: '',
  gravity: 'n',
  html: false, //data-hint-html="true|false"
  live: false,
  offset: 0,
  opacity: 0.8,
  title: 'title',
  textAlign: 'left',  //data-hint-align="left"
  maxWidth: 0  // data-hint-max-width
}
```

## Why

[hint.css](https://github.com/chinchang/hint.css) is a CSS only tooltip library for your lovely websites.

It is very easy to use but there are some problems when I am using in [bootstrap-table](https://github.com/wenzhixin/bootstrap-table).

![1](https://cloud.githubusercontent.com/assets/2117018/14975830/53603806-1138-11e6-869a-a9c3233367d0.png)

I want to solve this problem but I don't have a good idea. So I create this jQuery plugin.

![2](https://cloud.githubusercontent.com/assets/2117018/14975833/54a6bc6c-1138-11e6-9826-cb81bdfc11a2.png)

---

Thanks for hint.css and tipsy.

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