You'd also need to include directionality.

<!----------------//------
andy matthews
web developer
certified advanced coldfusion programmer
ICGLink, Inc.
[EMAIL PROTECTED]
615.370.1530 x737
--------------//--------->

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Behalf Of Sam Collett
Sent: Tuesday, August 08, 2006 7:55 AM
To: jQuery Discussion.
Subject: [jQuery] Plugin idea: Gradient Fill


Not seen a plugin that does this yet. Would try it myself, but not
sure how to do so (even after looking at existing implementations).
Anyone up for a challenge?

Syntax could be something like this

$("#mydiv").gradientFill(
  {
    from: "background",
    to: "#fff",
    direction: "vertical"
  }
)

Would go from the background colour of #mydiv to white, in a vertical
direction. Or you could specify a different start colour and
direction:

$("#mydiv").gradientFill(
  {
    from: "#000",
    to: "#fff",
    direction: "horizontal"
  }
)

Something like this:
http://www.designdetector.com/demos/css-gradients-demo-1.php , but the
markup would be generated dynamically.

_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/


_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to