New Plugin: Gradient
June 26th, 2007
I just added a new plugin called, gradient. It dynamically applies a configurable gradient to the background of an element. You create a gradient like this:
-
$('.gradient').gradient({ from: '003366', to: 'FFFFFF' });
Check out the visual test, read the docs and grab the code.

June 27th, 2007 at 5:36 am
Now that generates a heck lot of divs. Interesting stuff!
June 27th, 2007 at 8:16 am
Hey Jörn ... Depending on the length of the gradient it will generate up to 100 divs.
July 17th, 2007 at 8:21 am
awesome!!!!!
July 18th, 2007 at 1:35 am
but so slow ;[
July 18th, 2007 at 8:13 am
How are you using it pako? Do you have an example of where it is so slow?
July 22nd, 2007 at 5:04 pm
Agreed! Very nice!
Suggestions:
1. If length is specified, the remainder of the original should be the filled with the second color rather than black.
2. It would be helpful to allow block elements in the without having to specify style="display:inline; background-color:transparent;" on the block element. Thanks!