jquery - cant get color animation to work -
simple trying animate p-tag #disclaimer highlight background color.
example in jquery:
$('#disclaimer').animate({'backgroundcolor':'#ff9f5f'}, 2000);
the html simple
<p id="disclaimer"> disclaimer here </p>
but when try open page in ie here js error:
webpage error details
user agent: mozilla/4.0 (compatible; msie 8.0; windows nt 6.1; trident/4.0; slcc2; .net clr 2.0.50727; .net clr 3.5.30729; .net clr 3.0.30729; media center pc 6.0; infopath.3; .net4.0c; .net4.0e; .net clr 1.1.4322) timestamp: mon, 26 jul 2010 17:57:09 utc
message: invalid property value. line: 141 char: 6 code: 0 uri: file:///c:/users/xxxxx/desktop/myjquerysite/lib/jquery-1.4.min.js
am doing incorrectly ?
jquery doesn't natively support animations on colors. in order work you'll need include jquery color plugin.
here's blurb in jquery 1.2 release notes.
Comments
Post a Comment