When you hover over the dropdown menus on the main factorio website a couple times before the jquery slide down animation is complete the queue builds up and the animations play out even if the mouse is no longer present.
Example:
Suggested code fix: https://www.diffchecker.com/dbon8wj7
By calling stop() before animating with slideDown() or slideUp() it empties the animation queue which prevents build up