Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/bhaumikpatel/randomcolor

Random Color Jquery Plugins
https://github.com/bhaumikpatel/randomcolor

Last synced: about 1 month ago
JSON representation

Random Color Jquery Plugins

Awesome Lists containing this project

README

        

Random Color jQuery Plugin
=====================

Random color add any text in website. Lightweight jquery plugin uncompressed 3kb.
Random color
----------
Demo
---------
- [jsFiddle](http://jsfiddle.net/lesson8/NgtcR/show/)

Basic Usage
---------

Include jQuery and randomColor into your document's ``
```


```
Call the function as follows:
```
$('h2').randomColor({
random: true,
colors: ["#216FF1", "#D5412D", "#FFC407", "#009856"],
css: {
'color': '#86C9EF',
fontStyle: 'oblique',
'fontSize': '30px'
},
complete: function () { alert('Done!') }
});
```
#### Documentation
Available options

Name

Description

css

Customizable CSS write property.

colors

Custom colors collection array.colors: ["#216FF1", "#D5412D", "#FFC407", "#009856"]


Array; Default value: null

random

If you can not color change randomly then put false.


Boolean; Default value: true

Callbacks

Name

Description

complete

Called after complete process.