Bug Tracker

Opened 9 years ago

Closed 9 years ago

Last modified 9 years ago

#8396 closed bug (invalid)

error when animating the background-color property of the body tag

Reported by: anonymous Owned by:
Priority: low Milestone: 1.next
Component: effects Version: 1.5.1
Keywords: Cc:
Blocked by: Blocking:

Description

I tried to animate the background-color property of my <body> like this :

$("body").animate({backgroundColor: "#000"});

But the color don't seems to be well interpreted, the value is interpreted as "NaNpx".. it's like the color is interpreted as a pixel value or something..

And by the way, when you use a simple css change like this :

$("body").css({backgroundColor: "#000"});

it works.


I tried on Firefox 3.6.13, on a Windows PC, with jQuery v1.3.2 but i tried with v1.5.1 too and the same issue happens

Change History (2)

comment:1 Changed 9 years ago by dmethvin

Resolution: invalid
Status: newclosed

As documented, the .animate() method animates only numeric properties. Sounds like you would want to use the color plugin. If you need more help ask on forum.jquery.com.

http://plugins.jquery.com/project/color

comment:2 Changed 9 years ago by jitter

Component: unfiledeffects
Priority: undecidedlow
Note: See TracTickets for help on using tickets.