I have a div that has the following applied to it on document load:
$("#megamenu").delay(3000).animate({height:"hide",opacity:"hide"}, 5000);
What I want to be able to do is stop and revert the animation if a user hovers over said div.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can use the jQuery.stop() method to stop the current animation. Then specify the parameters you wish the new animation to return the element to. For example:
See: http://api.jquery.com/stop/ for details.