1.0.6 • Published 5 years ago

tooltips-js v1.0.6

Weekly downloads
9
License
MIT
Repository
github
Last release
5 years ago

TooltipsJS

TooltipsJS is a javascript library for adding tooltips in your website. It is lightweight and easy to use.

Add as a npm module

npm install tooltips-js --save

Basic Usage

Add to HTML file

<script src="./path/to/tooltips-js.min.js"></script>

Add to HTML file through CDN

<script src="https://cdn.jsdelivr.net/npm/tooltips-js@1.0.6/src/tooltips-js.min.js"></script>

Create tooltip

<button id='example'>Hover to display tooltip</button>
<script>
	new Tooltip(document.getElementById('example'), {
		label: "Tooltip example", // Label *required
		position: "top", // (top or bottom) *default: top
		color: "green" // (color names, hex, rgb(), rgba()) *default: #444
	})
</script>

License

MIT License

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago