I created the .slideDown and .slideUp for a div based on mouseover and mouseleave .
.slideDown
.slideUp
div
mouseover
mouseleave
The problem is that when I flip a few divs so that quickly, and then rolloff, it seems to remember how many times I rolled and did not stop until all the slide windows and slide buttons were completed.
divs
Example: http://juliosalvat.com/IconTest/
Yes, it's nasty. JQuery saves the event queue to shorten this queue, you can use .stop()
.stop()
http://api.jquery.com/stop/
You might need .stop(true, true) , which will remove all the animation in the queue and just play the last one.
.stop(true, true)
You should look into the HoverIntent jQuery plugin
http://cherne.net/brian/resources/jquery.hoverIntent.html
hoverIntent is a plugin that tries to determine user intention ... like a crystal ball, with just a mouse movement! It works like (and was derived from) jQuery's built-in hang. However, instead of immediately calling the onMouseOver function, it waits until the user mouse slows down before making the call.
Source: https://habr.com/ru/post/1389691/More articles:Download the contents of the database to CKEditor, modify and save it - ckeditorNhibernate, WinForms, Castle Windsor: session management - c #Program UITabBarItem icons with StoryBoards? - iphonePassing Firefox profile to remote Firefox web browser not working - pythonMake an entire row in a ListView clickable? - androidMark transaction as rollback only in MessageDrivenBean without repeating message - javaConnection between JOptionPane buttons and user panel - javaHow to change button background inside JOptionPane - javajQuery on () docs - javascriptUncaught TypeError: Unable to call 'extend' method from undefined - backbone.jsAll Articles