Hi,
I'm trying to create an effect where small dots on the html background gradually change color in an infinite loop. I have a 960px centred design so the background area can get quite large.
My solution was to set the background-color to a default color then tile a square grey image with a transparent corner knocked out over the top - so it shows the background through it.
I've then used the jQuery UI libabry to animate the changing background color:
$("#root")
.animate({fontSize:"1em"},pause)
.animate( { backgroundColor: 'blue' }, transition)
.animate({fontSize:"1em"},pause)
.animate( { backgroundColor: 'darkred' },transition);
This works but theres a big problem!
During the period where the backgroundColor is transitioning my CPU (firefox) usage goes to 100%.
so,
Is this the solution you would use?
If it is any ideas how to sort out the CPU usage?
Also how do you loop the animations?
Appreciate any help, John