Bug Tracker

Modify

Ticket #11270 (closed bug: duplicate)

Opened 17 months ago

Last modified 17 months ago

After updating to jQuery 1.7.1 Animate stops working

Reported by: robinwilson@… Owned by:
Priority: undecided Milestone: None
Component: unfiled Version: 1.7.1
Keywords: Cc:
Blocking: Blocked by:

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

Change History

comment:1 Changed 17 months ago by timmywil

  • Status changed from new to closed
  • Resolution set to duplicate

comment:2 Changed 17 months ago by timmywil

Duplicate of #7755.

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.