[jQuery] animate() for background-image and/or classnames?

[jQuery] animate() for background-image and/or classnames?


Hi there!
Is there any chance to use animate() to animate a background-image and/
or classnames?
$("#block").animate({
backgroundImage: 'url(bla.gif)'
}, 1500 );
Doesn't seem to work. :(
Let's say I have an element with a red background and the class 'red',
I want to remove the class 'red' and add the class 'blue' so that the
element get's blue.