Skip to main content

Bug Tracker

Side navigation

#11270 closed bug (duplicate)

Opened February 01, 2012 10:24PM UTC

Closed February 01, 2012 10:32PM UTC

Last modified February 01, 2012 10:33PM UTC

After updating to jQuery 1.7.1 Animate stops working

Reported by: robinwilson@rwsbetas.com Owned by:
Priority: undecided Milestone: None
Component: unfiled Version: 1.7.1
Keywords: Cc:
Blocked by: Blocking:
Description

After updating to jQuery 1.7.1 from 1.4.2 it seems that the backgroundPosition property of the .stop().animate function no longer works.

Here is the code:

[code]

<script type="text/javascript">

var J = jQuery.noConflict();

J(window).load(function() {

var pos = J("#leftBanner").position();

J("#leftBanner").css("background-position", "-50px");

J("#leftBanner").css("opacity", "0");

J("#leftBanner").stop().animate({

backgroundPosition: "+=50px 0px",

opacity: 1.0

}, 2000);

});

</script>';

/code

Whilst the opacity still changes the image starts at the correct position left but does not animate to the right like it is supposed to.

Downgrading back to the old version of jQuery fixes the problem.

Thanks

Robin

Attachments (0)
Change History (2)

Changed February 01, 2012 10:32PM UTC by timmywil comment:1

resolution: → duplicate
status: newclosed

Changed February 01, 2012 10:33PM UTC by timmywil comment:2

Duplicate of #7755.