Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/payalord/bordercoloranimate

jQuery plugin to animate border color
https://github.com/payalord/bordercoloranimate

animation border-color jquery jquery-plugin

Last synced: about 5 hours ago
JSON representation

jQuery plugin to animate border color

Awesome Lists containing this project

README

        

# BorderColorAnimate
jQuery plugin to animate border color.

# Syntax
```javascript
$().BorderColorAnimate( hexcolor [, duration ] [, complete ] ) //Returns jQuery object of
```

# Usage
Include the plugin after your jQuery:
```html

```

Animate:
```javascript
$().BorderColorAnimate('#ff1a4b');
```

Duration same as in jQuery:
> Given in milliseconds; higher values indicate slower animations, not faster ones. The default duration is 400 milliseconds. The strings 'fast' and 'slow' can be supplied to indicate durations of 200 and 600 milliseconds, respectively.

```javascript
$().BorderColorAnimate('#ff1a4b', 1000);
```

Custom complete function can be provided at the end, which will be executed after animation complete:
* `this` refers to `` element inside custom function
```javascript
$().BorderColorAnimate('#ff1a4b', 1000, function(){$(this).BorderColorAnimate('#66ff1a');});
```

# License
[MIT License](LICENSE)