Last Updated: February 25, 2016
·
703
· samueldhardy

Prevent Animation Queue Buildup

Fix for animations conflicting with other events.

Simply use .stop() method before animating:

$(this).stop().animate({ right: 100 }, 'fast');