0.1.15 • Published 10 years ago

tooly-tip v0.1.15

Weekly downloads
2
License
MIT
Repository
github
Last release
10 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

10 years ago

0.1.14

10 years ago

0.1.13

10 years ago

0.1.12

10 years ago

0.1.11

10 years ago

0.1.10

10 years ago

0.1.8

10 years ago

0.1.6

10 years ago

0.1.5

10 years ago

0.1.4

10 years ago

0.1.3

10 years ago

0.1.2

10 years ago

0.1.1

10 years ago

0.1.0

10 years ago