#11270 closed bug (duplicate)
After updating to jQuery 1.7.1 Animate stops working
Reported by: | 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>';
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
Change History (2)
comment:1 Changed 11 years ago by
Resolution: | → duplicate |
---|---|
Status: | new → closed |
Duplicate of #7755.