npm.io
1.5.2 • Published 5 months ago

hint-css.js

Licence
MIT
Version
1.5.2
Deps
0
Size
29 kB
Vulns
0
Weekly
0
Stars
5

hint-css.js

hint css by jQuery

Example

Install

NPM or YARN
npm install hint-css.js
# or
yarn add hint-css.js
CDN
<link rel="stylesheet" href="https://unpkg.com/hint-css.js@1.5.0/src/hint-css.css">
<script src="https://unpkg.com/hint-css.js@1.5.0/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

$.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 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.

1

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

2


Thanks for hint.css and tipsy.