Estensione di .animate()

 

Cambia sfondo.

 

Messaggio in #box

 

Codice:

 

function effetto () {
$("#box").text("Errore!").animate({"backgroundColor":"red"});
}