Skip to main content

Bug Tracker

Side navigation

#8396 closed bug (invalid)

Opened February 27, 2011 08:03PM UTC

Closed February 27, 2011 09:11PM UTC

Last modified February 28, 2011 11:04AM UTC

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

Attachments (0)
Change History (2)

Changed February 27, 2011 09:11PM UTC by dmethvin comment:1

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

Changed February 28, 2011 11:04AM UTC by jitter comment:2

component: unfiledeffects
priority: undecidedlow