animating from one style or class to another can be done with Interface's "animate" method.

--Karl
_________________
Karl Swedberg
www.englishrules.com
www.learningjquery.com



On Jul 29, 2007, at 2:53 PM, Collin Allen wrote:


Morphing from color to color should be possible, perhaps by modifying
the CSS background-color property using rgb(x,y,z) values.  You could
increment each value individually, or each in a repeating sequence.
I'm not sure value changing method would produce the most visually
pleasing results, but that would be something to tinker with.
Alternatively, you could (again) use a 1x1 pixel animated gif fading
from R to G to B (using three layers and tweening in ImageReady), and
letting the background-repeat property tile it in both X and Y
directions.  The latter would be much less CPU intensive, making your
script that much more lightweight.

Hope that helps!

--
Collin Allen
www.command-tab.com


On Jul 29, 12:48 am, "Kia Niskavaara" <[EMAIL PROTECTED]>
wrote:
On 7/29/07, Sean Catchpole <[EMAIL PROTECTED]> wrote:



It would be very easy to create a repeating animation, simply call the
same animation again the callback function.

Thanks.

More importantly, I believe that this is a prefect situation for a gif

animation. Doing javascript animations is very hard for the browser
and slows down old computers. Gifs have been used for a long time so
browsers are quite good at drawing them.

In my scenario, jQuery is already loaded, so there will be no extra loading time. I was also thinking that a basic text "Please wait, loading" could be animated in a simple way. Maby by cycling some colors, slowly. I don't think
that it will slow down any old computer.

Can the animate() function morph between colors?


Reply via email to