jquery bind click event animation BUG

 

 animate jq in () method to achieve animation while binding events will produce various types of BUG, ​​when the selected event and I would use mouseenter mouseleave as much as possible to avoid

Mouseover and mouseout events generated by bubbling. If you use a separate animate, then quickly moved in and out in time, will re-triggering event, produced queue

Not cleared Repeat the bug, you can use this time stop () to clear the queue, stop the animation step. If you encounter a type of animation down mode, it is necessary to avoid moving when the module is removed to produce flicker repeatedly moved in and out of the bug, with preliminary ideas animate when the first one is to avoid short delay by asynchronous rapid flashing bug moved out time is generated.

Guess you like

Origin www.cnblogs.com/peng793238465/p/11491307.html