Trigger an event after all of the animations from current function completed
问题 I've been trying to get a function to trigger only after all of the element's .animate() functions have been completed including the delay and easing. I've tried a few different methods with no luck, any ideas? $("#inner_work").on("mouseenter", ".activeBox", function(){ var thisBox = $(this).attr('id'); $("#inner_work [class^='workBox_']").each(function(){ if($(this).attr('id') != thisBox){ $(this).stop().delay(randomEasing(200,800)).animate({ opacity:0 }, randomEasing(200,700)); } else { $