https://github.com/aduth/utip
A small JavaScript utility for displaying simple, elegant tooltips
https://github.com/aduth/utip
Last synced: about 1 year ago
JSON representation
A small JavaScript utility for displaying simple, elegant tooltips
- Host: GitHub
- URL: https://github.com/aduth/utip
- Owner: aduth
- License: mit
- Created: 2012-11-10T00:50:06.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2014-03-29T14:37:20.000Z (about 12 years ago)
- Last Synced: 2025-03-13T22:35:07.382Z (about 1 year ago)
- Language: JavaScript
- Homepage: http://aduth.github.com/uTip/
- Size: 168 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# µTip
__µTip__ is a small JavaScript utility for displaying simple, elegant tooltips. Does the world need yet another tooltip utility? Probably not, but µTip was created with the purpose of satisfying the following criterion:
* jQuery (or Zepto) optional - Familiar jQuery syntax if you're using it, but not a requirement
* Progressively enhanced for CSS3 - Works in older versions of Internet Explorer, but takes advantage of CSS3 features if available
* Single .js file - no stylesheets and no images
* Optional customization - simple for basic scenarios, but plenty of customization if you need it. Better yet, simply provide a base background color and µTip will find complementing colors for the background gradient, border, and text.
* Small - µTip weighs in at around __2kb__ minified and gzipped
Sound good? Check out the demos, then try it out for yourself.
## Usage
For the most basic of scenarios, the following is sufficient:
_Plain JavaScript:_
new uTip(document.getElementById('myLink'), { text: 'Hello world!' });
_jQuery:_
$('#myLink').uTip({ text: 'Hello world!' });
For more advanced usage, refer to the demos.
## Demos
[http://aduth.github.com/uTip/](http://aduth.github.com/uTip/)
## License
Copyright (c) 2012 Andrew Duthie
Released under the MIT License (see LICENSE.txt)