Simple jQuery plugin to generate a gradient based on an element's existing background color
$('.color').gradiate();
or
//set the multiplier used to generate the opposing color
//(defaults to 0.8)
$('.color').gradiate(0.75);
Simple jQuery plugin to generate a gradient based on an element's existing background color
JavaScript