Skip to content

Super simple, zero config options, <2kb declarative tooltip library with no dependencies.

Notifications You must be signed in to change notification settings

Arual90/kawo-tooltip

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

kawoTooltip

We wanted a super simple, zero config options, declarative tooltip library with no dependencies. We couldn't find one, so we wrote our own.

Installation

Just use bower to install.

$ bower install kawo-tooltip

RequireJS

require.config({
	paths: {
		kawoTooltip: '../bower_components/kawo-tooltip/dist/kawo-tooltip.min'
	}
});

require( [ 'kawoTooltip' ], function() {

});

Basic Script Include

<script src="./bower-components/kawo-tooltip/dist/kawo-tooltip.min.js"></script>

Usage

Simply add the attribute data-tooltip to any element on which you wish to display a tooltip.

<p data-tooltip="Text to display">This tooltip works on almost any HTML element.</p>

Build Your Own

If you want to customise kawo-tooltip you can build your own minified version using uglifyjs.

$ uglifyjs kawo-tooltip.js -c -m -o dist/kawo-tooltip.min.js

About

Super simple, zero config options, <2kb declarative tooltip library with no dependencies.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 73.0%
  • HTML 27.0%