Bug Tracker

Opened 12 years ago

Closed 11 years ago

Last modified 11 years ago

#7157 closed bug (fixed)

Animation callback shows element is still ":animated"

Reported by: Motty Owned by: gnarf
Priority: low Milestone: 1.8
Component: effects Version: 1.4.2
Keywords: animation callback Cc:
Blocked by: Blocking:


After an element has completed its animation, the callback still shows that the element is animated. I posted a demo here: http://jsfiddle.net/5V5M3/

    "left": "+=50px"
}, "slow", function() {

I can hack around it by basically using a setTimeout:

    "left": "+=50px"
}, "slow", function() {
    setTimeout(function() { alert($(".block").is(':animated')) }, 0);

Change History (9)

comment:1 Changed 12 years ago by snover

Status: newopen

comment:2 Changed 12 years ago by snover

Milestone: 1.4.3

Resetting milestone to future.

comment:3 Changed 12 years ago by ajpiano

Milestone: 1.next

Still an issue in jQuery 1.5.2rc

comment:4 Changed 12 years ago by dmethvin

There is a test case in https://github.com/jquery/jquery/pull/273 that might be handy.

comment:5 Changed 12 years ago by timmywil

Owner: set to timmywil
Priority: undecidedlow
Status: openassigned

comment:6 Changed 11 years ago by timmywil

Milestone: 1.next1.8

comment:7 Changed 11 years ago by gnarf

Owner: changed from timmywil to gnarf

comment:8 Changed 11 years ago by Corey Frang

Resolution: fixed
Status: assignedclosed

Fix #7157. Animation callbacks shouldn't see an element as :animated.

Unless of course, there are other animations to be done! Closes gh-775.

Changeset: 6bf3f20d4e0f69ab14702152880a0574623490e2

comment:9 Changed 11 years ago by gnarf

#11846 is a duplicate of this ticket.

Note: See TracTickets for help on using tickets.