Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/bhaumikpatel/randomcolor
- Owner: bhaumikpatel
- Created: 2013-12-05T17:23:36.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2013-12-05T18:07:48.000Z (about 11 years ago)
- Last Synced: 2024-10-12T06:52:30.676Z (2 months ago)
- Homepage: http://bhaumikpatel.github.io/RandomColor/
- Size: 426 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Random Color jQuery Plugin
=====================Random color add any text in website. Lightweight jquery plugin uncompressed 3kb.
----------
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 optionsName
Description
css
Customizable CSS write property.
colors
Custom colors collection array.
colors: ["#216FF1", "#D5412D", "#FFC407", "#009856"]
Array; Default value: nullrandom
If you can not color change randomly then put false.
Boolean; Default value: trueCallbacks
Name
Description
complete
Called after complete process.