minitooltip
A minimalist tooltip solution, perfect for fast and beautiful websites
- Lightweight - Around 3KB in minified version
- Independent - Don't require jQuery or any other library
- Simplest - Call minitooltip and done! You got tooltips
Installing
yarn
$ yarn add minitooltip
npm
$ npm install minitooltip --save
bower
$ bower install minitooltip --save
manual
Getting Started
The simplest way
Put the 'minitooltip' class on your body tag, and all title attributes will be transformed into tooltips
Very simple!
Setup with classes
All elements with 'tip' class and title attribute will receive tooltips
Another simple wayA tooltip with arbitrary position
Setup with data-attributes
If you want, it is also possible to work with data-attributes
A tooltip without title Another arbitrary position
Styling
Setting the global theme
The default global theme is Dark, but you can change it adding the 'minitooltip-light' class on your body tag
With a light tooltip
Setting a single tooltip theme
You can set the theme of a single tooltip with the classes 'tip-dark' and 'tip-light'. And, if you prefer, can define this with data attributes
foobar
Hacking the themes
The minitooltip themes is just css, so you can override his styles with more css
Contributing
Like the library? Feel free to contribute! Make your fork, submit your pull request and help to grow it
License
minitooltip is freely distributable under the MIT license