If you find this useful and want to show some love & encouragement, I am on Gratipay.
hint.css alternatives and similar libraries
Based on the "Tips" category.
Alternatively, view hint.css alternatives based on common mentions on social networks and blogs.
3.0 0.0 hint.css VS jquery-popup-overlayjQuery plugin for responsive and accessible modal windows and tooltips
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.
Do you think we are missing an alternative of hint.css or a related project?
A tooltip library in CSS for your lovely websites
Get the library using one of the following ways:
- [unminified] : https://raw.github.com/chinchang/hint.css/master/hint.css
- [minified] : https://raw.github.com/chinchang/hint.css/master/hint.min.css
Base build (Does not include color themes and fancy effects)
- [unminified] : https://raw.github.com/chinchang/hint.css/master/hint.base.css
- [minified] : https://raw.github.com/chinchang/hint.css/master/hint.base.min.css
bower install hint.css
npm install --save hint.css
Now include the library in the
HEAD tag of your page:
<link rel="stylesheet" href="hint.css" />
<link rel="stylesheet" href="hint.min.css" />
Now, all you need to do is give your element any position class and tooltip text using the
Note, if you don't want to use
aria-label attribute, you can also specify the tooltip text using the
data-hint attribute, but its recommended to use
aria-label in support of accessibility. Read more about aria-label.
Hello Sir, <span class="hint--bottom" aria-label="Thank you!">hover me.</span>
Use it with other available modifiers in various combinations. Available modifiers:
- Colors -
- Sizes -
Upgrading from v1.x
If you are already using v1.x, you may need to tweak certain position classes because of the way tooltips are positioned in v2.
Changing the prefix for class names
Don't like BEM naming (
hint--) or want to use your own prefix for the class names?
src/hint-variables.scss and change the
To generate the css file, please read the [contributing page](./CONTRIBUTING.md).
Who's Using This?
- Webflow Playground
- Panda chrome app
- Alm - TypeScript IDE
- Web Maker
hint.css works on all latest browsers, though the transition effect is supported only on IE10+, Chrome 26+ and FF4+ at present.
- Chrome - basic + transition effects
- Firefox - basic + transition effects
- Opera - basic
- Safari - basic
- IE 10+ - basic + transition effects
- IE 8 & 9 - basic
Checkout the FAQ Wiki for some common gotchas to be aware of while using hint.css.
hint.css is developed in SASS and the source files can be found in the
If you would like to create more types of tooltips/ fix bugs/ enhance the library etc. you are more than welcome to submit your pull requests.
[Read more on contributing](./CONTRIBUTING.md).
Changelog & Updates
See the Changelog.
To catch all updates and discussion, join the mailing list: [email protected].
Or follow on twitter: @hint_css
Hint.css is free for personal and commercial use under the MIT License.
*Note that all licence references and agreements mentioned in the hint.css README section above are relevant to that project's source code only.