I am using following code to change background color:
$('.posts').animate({height: '100px', backgroundColor: '#0000FF'}, 2000);
$('.posts a').animate({color: '#00FF00'}, 2000);
getting following error on firebug instead of previewing color change in page:
Expected color but found 'NaNpx'. Error in parsing value for 'background-color'. Declaration dropped.
Expected color but found '#00FF00px'. Error in parsing value for 'color'. Declaration dropped.
What's the error with my code?