Element gradient
This plugin requires the Dimensions plugin and jQuery version 1.1.3+.
It allows you to define a gradient fill and have an element filled with a linear gradient. You can set the direction of the gradient (right-left or up-down) and the opacity of the gradient easily.
There is a colorGradient plugin which seems similar but takes a collection of elements and applies a gradient to each element, whereas this plugin applies a gradient fill to all matched elements. If you look at our example pages, you can see the differences.
Probably it would be a good idea to merge these two plugins eventually.
评论