Wednesday, 15 February 2012

JQuery Animation fails randomly -


I tried to apply jQuery animation to my site, but randomly after seconds, minutes or hours, the animation An error throws: "Invalid property value" line 154 four 4889 jquery-ui-1.7.2-custom.js.

Here my code is:

  $ (idTimer) .animate ({background color: '# aa0000', color: '#ffffff'}, 1000) ; $ (IdPrice) .animate ({backgroundColor: '# aa0000', color: '#ffffff'}, 1000); $ (IdTimer) Animate ({backgroundColor: '#ffffff', color: '# f67802'}, 1000); $ (IdPrice) .animate ({backgroundColor: '#ffffff', color: '# 000000'}, 1000);  

Of course the IDs are set correctly. When the animation is hanging, no animation will be done for this edition, so it is very mysterious. Please help with this.

Here is an unsuccessful code from the beginning of 4889:

  h.elem.style [f] = "RGB (" + [math max. (Math.min ParseInt ((h.pos * (h.end [0] -h.start [0])) + h.start [0], 10), 255), 0), Math.max (Math.min (parseInt ( (H.pos * (h.end [1] -h.start [1])) + h.start [1], 10), 255), 0), Math.max (math minutes (parseInt ( Joining .pos * (h.end [2] -h.start [2])) + h.start [2], 10), 255), 0]]. (",") + ") }});  

Try this type

  $ ( IdTimer) .animate ({'backgroundcolor': '# aa0000', 'color': '#ffffff'}, 1000);  

No comments:

Post a Comment