Don't Animate X If Animation X Already Running (inside keyup)

后端 未结 4 737
礼貌的吻别
礼貌的吻别 2020-12-06 15:04

The way it\'s currently written causes the hide to fire over and over if msg.d starts returning \'false\' from \'true\' until enough time has passed for the animation to sto

4条回答
  •  南方客
    南方客 (楼主)
    2020-12-06 15:43

    You can check if it's currently being animated using the animated selector.

    http://api.jquery.com/animated-selector/

提交回复
热议问题