How can I run a function anytime anything is animated with jQuery?

Posted by WillyCornbread on Stack Overflow See other posts from Stack Overflow or by WillyCornbread
Published on 2010-05-26T22:07:29Z Indexed on 2010/05/26 22:11 UTC
Read the original article Hit count: 232

Filed under:
|
|
|

Hi -

I have some jQuery animations in my code to slide divs up and down in response to some mouse clicks and other logic. This is all working just peachy, however in IE 6 some of the smaller icon images on the page don't slide along with the rest of the div for some strange reason. They kind of stay put then flicker into the new position and I've chalked this up to an IE6 'feature'.

Considering that I have to support IE6, I wanted to just hide the icons anytime an animation started, and show them again when the queue was empty.

I couldn't find a reference to any kind of events or hooks into the queue itself and I'd rather not add the hide code, then the show code to every animation as a callback.

Thanks if you can help-

b

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about jQuery