An open API service indexing awesome lists of open source software.

https://github.com/e00dan/ktooltip

Simple tooltip library written in 6 hours.
https://github.com/e00dan/ktooltip

Last synced: 2 months ago
JSON representation

Simple tooltip library written in 6 hours.

Awesome Lists containing this project

README

          

# kTooltip

Simple tooltip library written in 6 hours.

[![Demo kTooltip](https://j.gifs.com/o2lVKz.gif)](https://youtu.be/Sc6vRhDxnhM)

## Requirements

Link CSS and JS in your HTML file:

~~~ HTML

~~~

## Usage

### Simple
Add attributes `data-tooltip` and `data-tooltip-content` to desired element for tooltip to work.

~~~ HTML
This is span.
~~~

### Focus

Just switch `data-tooltip` from `text` to `focus`.

~~~ HTML

~~~

### AJAX

Switch `data-tooltip` to `ajax` and use `data-tooltip-api` to provide URL instead of `data-tooltip-content`.

~~~ HTML
AJAX request will be fired on hover
~~~

## License

The MIT License (MIT)
Copyright (c) 2016 Daniel Kmak