It appears this question was already answered: jQuery animate backgroundColor
However, I copy/pasted the given code from Andrew (see second answer down) in the top of my javascript file, and execute it:
jQuery(".myClass").animate({width : "15px", backgroundColor: "purple"});
And nothing happens. The width animation works, but the backgroundColor does not work.
I am using
https://ajax.googleapis.com/ajax/libs/jquery/1.5.0/jquery.min.js
Any ideas?
The code I was using was this:
For whatever reason, I had to put it within
jQuery(document).ready(function())