Skip to content

Commit

Permalink
v1.0.2 Added css3 Animations
Browse files Browse the repository at this point in the history
v1.0.2 Added css3 Animations
  • Loading branch information
object505 committed Feb 15, 2015
1 parent 8987d72 commit ea84b3b
Show file tree
Hide file tree
Showing 9 changed files with 3,549 additions and 42 deletions.
39 changes: 23 additions & 16 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,11 @@ A Lightweight Responsive jQuery Tooltip Plugin
<link rel="stylesheet" href="/path/to/tipso.css">
<script src="/path/to/tipso.js"></script>
```
To use css3 animation effects please include [Animate.css](http://daneden.github.io/animate.css)

```html
<link rel="stylesheet" href="/path/to/animate.css">
```

3. Call the plugin

Expand All @@ -35,22 +40,24 @@ A Lightweight Responsive jQuery Tooltip Plugin

##Usage

| Name | Default | Description |
|----------------|--------------|---------------------------------------------------------------------------------------|
| speed | 400 | integer - Duration of the fade effect in ms |
| background | '#55b555' | Background color of the tooltip, it can be hex, rgb, rgba, color name |
| color | '#ffffff' | Text color of the tooltip, it can be hex, rgb, rgba, color name |
| position | 'top' | Initial position of the tooltip, available positions 'top', 'bottom', 'left', 'right' |
| width | 200 | Width of the tooltip in px |
| delay | 200 | Delay before showing the tooltip in ms |
| offsetX | 0 | Offset value of the tooltip on X axis |
| offsetY | 0 | Offset value of the tooltip on Y axis |
| content | null | The content of the tooltip, can be text, html or whatever you want |
| ajaxContentUrl | null | Url for Ajax content |
| useTitle | true | To use the default title attribute as content (true,false) |
| onBeforeShow | function(){} | Function to be executed before tipso is shown |
| onShow | function(){} | Function to be executed after tipso is shown |
| onHide | function(){} | Function to be executed after tipso is hidden |
| Name | Default | Description |
|----------------|--------------|-----------------------------------------------------------------------------------------------------|
| speed | 400 | integer - Duration of the fade effect in ms |
| background | '#55b555' | Background color of the tooltip, it can be hex, rgb, rgba, color name |
| color | '#ffffff' | Text color of the tooltip, it can be hex, rgb, rgba, color name |
| position | 'top' | Initial position of the tooltip, available positions 'top', 'bottom', 'left', 'right' |
| width | 200 | Width of the tooltip in px |
| delay | 200 | Delay before showing the tooltip in ms |
| animationIn | 'fadeIn' | CSS3 animation effect to show the tooltip using [Animate.css](http://daneden.github.io/animate.css) |
| animationOut | 'fadeOut' | CSS3 animation effect to hide the tooltip using [Animate.css](http://daneden.github.io/animate.css) |
| offsetX | 0 | Offset value of the tooltip on X axis |
| offsetY | 0 | Offset value of the tooltip on Y axis |
| content | null | The content of the tooltip, can be text, html or whatever you want |
| ajaxContentUrl | null | Url for Ajax content |
| useTitle | true | To use the default title attribute as content (true,false) |
| onBeforeShow | function(){} | Function to be executed before tipso is shown |
| onShow | function(){} | Function to be executed after tipso is shown |
| onHide | function(){} | Function to be executed after tipso is hidden |

> Additionaly you can use `data-tipso` instead of the title attribute for the tooltip content ( set `useTitle: false` )
Expand Down
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "tipso",
"version": "1.0.1",
"version": "1.0.2",
"description": "A Lightweight Responsive jQuery Tooltip Plugin",
"main": ["src/tipso.min.js", "src/tipso.css"],
"keywords": [
Expand Down
Loading

0 comments on commit ea84b3b

Please sign in to comment.