In order to "animate" colour, the browser needs to know "in-between" colours - e.g. fading from black to white goes through shades of grey....

There's a "color" (American spelling) plugin that will do the trick - just add it and your existing code should work.

http://plugins.jquery.com/project/color
http://dev.jquery.com/~john/ticket/fx-rewrite2/

L

yabado wrote:

I am trying to apply a color animation to a textarea when text is
appended to it.

Here is what I have...

HTML:

<textarea id="reply"><textarea>


JQ:

$("#reply")
                .animate({backgroundColor:'red'}, "fast")
                .append("\n"+insertText+"\n")
                .animate({backgroundColor:'white'}, "fast");

This is not working, what am I mssing? The color does not change at
all?

TIA



Reply via email to