Is it possible to animate the background-color in jQuery, because it is not working.
background-color
$(\'#something\').animate({ background :\"red\" }, 1000
Using similar syntax (...{background-color :"red"}...), I get the error
...{background-color :"red"}...
SyntaxError: Unexpected token -
I was able to get it working by encapsulating the CSS property background-color in single quotes:
$('#something').animate({ 'background-color' :"red" }, 1000);