Bug Tracker

Opened 8 years ago

Closed 8 years ago

Last modified 8 years ago

#11524 closed bug (invalid)

jQuery's animate method absolutely doesn't work from 1.6 to 1.7.2 in one case

Reported by: Wei Lou Owned by:
Priority: low Milestone: None
Component: effects Version: 1.7.2
Keywords: Cc:
Blocked by: Blocking:

Description

jQuery 1.5.2 can work fine. But jQuery 1.6 to 1.7.2 absolutely can't work.

How can't jQuery 1.7.2's animate method work?

In one case, it absolutely can't work. Even you open Chrome 17's developer tool's "console" panel, and then run codes below, it doesn't work. The CSS property I try to change via jQuery's animate method doesn't changed.

$('div').animate({
    "opacity": 0
});

My codes are pretty complicated. So I haven't found how to reproduce. But basically the reproduce steps might be:

1, Web page opened.

2, jQuery 1.7.2's animate method can work.

3, Run some codes (It might be jQuery's codes to elementA).

4, jQuery's animate method can't work to elementA. But jQuery's animate method still can work to other elements, like elementB or elementC.

Change History (4)

comment:1 Changed 8 years ago by sindresorhus

Component: unfiledeffects
Priority: undecidedlow
Resolution: invalid
Status: newclosed

It's probably not the animate method, but something else in your code that halts script execution. Though we would need a simplified jsfiddle testcase to investigate further.

If you require assistance with your code, please make a post in either the official jQuery Forums or on our #jquery channel on freenode. Should you be able to establish that the issue you are seeing is in fact related to core and can be reduced, we will me more than happy to investigate further at that point.

comment:2 Changed 8 years ago by Wei Lou

I don't think this is an issue of my codes. I believe this is a bug of jQuery's new version.

If I simply use jQuery 1.5.2, it works.

If I use jQuery's animate method on other elements, it works.

If I use jQuery's animate method even on Chrome's developer tools, it can't work.

When I have time, I might look into this issue and try to reproduce. But I just think you should investigate this issue now. Perhaps look into what was changed to jQuery's animate method in jQuery 1.6 version.

comment:3 Changed 8 years ago by dmethvin

@WeiLou, here are all the changes between jQuery 1.6 and 1.7.2:

https://github.com/jquery/jquery/compare/1.6...1.7.2

If you can find the problem there please report it to us. It may be easier for you to create a reduced test case from your own code however.

comment:4 Changed 8 years ago by Wei Lou

@dmethvin

Thank you for your reply. I may look into this problem later.

Note: See TracTickets for help on using tickets.