0.1.15 • Published 8 years ago

tooly-tip v0.1.15

Weekly downloads
2
License
MIT
Repository
github
Last release
8 years ago

tooly

Minimalistic tooltip plugin written in ES6

Installation

  $ bower install tooly-tip
  $ npm install tooly-tip --save
<script src="/path/to/jquery.js"></script>
<script src="/path/to/tooly-global.js"></script>

or

requirejs.config({
    'shim': {
      'tooly'  : ['jquery']
    }
});
define(['tooly'], function($){
  //some code
});

Tooly comes in CommonJS, Global and AMD variants.

Usage

Currently tooly can be triggered only on hover

Initialization

$(target).tooly({
    html:html,//HTML that needs to be inserted inside tooly
    animation:animation,//Tooly animation. Can be any one of 'opacity' or 'slide'
    position:position //Preferred position of tooly. Can be any one of 'top','right','bottom' and 'left'. Fallsback to other
                      //positions if not possible else throws a error
});

Destroy

$(target).tooly('destroy');

Docs

  $ npm install
  $ npm run generate-docs

Docs will be put in /docs folder

Examples

To run the examples

  $ npm start

And goto http://localhost:8080/examples/index.html To run the examples in dev mode goto http://localhost:8080/examples/index-dev.html

0.1.15

8 years ago

0.1.14

8 years ago

0.1.13

8 years ago

0.1.12

8 years ago

0.1.11

8 years ago

0.1.10

8 years ago

0.1.8

8 years ago

0.1.6

8 years ago

0.1.5

8 years ago

0.1.4

8 years ago

0.1.3

8 years ago

0.1.2

8 years ago

0.1.1

8 years ago

0.1.0

8 years ago