Created
September 13, 2016 21:24
-
-
Save yagamicoder/699b332beb0497324cbf255c8c2c3dd5 to your computer and use it in GitHub Desktop.
Using the stop function to prevent animation queue buildup
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$('#boxBtn > a').on('click', function() { | |
$('#myList').stop(true, true).next("ul").toggle(700); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment