1.3.2 • Published 10 months ago

hint-css.js v1.3.2

Weekly downloads
28
License
MIT
Repository
github
Last release
10 months ago

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.2.0/src/hint-css.css">
<script src="https://unpkg.com/hint-css.js@1.2.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,
  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.

1.3.2

10 months ago

1.3.1

11 months ago

1.3.0

12 months ago

1.2.0

1 year ago

1.1.0

4 years ago