How do I make a div move up and down on hover as if it were jumping? Would this be possible to do or can it only move up when the mouse is over the div?
Share
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 jQueryUI’s bounce effect for this: http://jqueryui.com/demos/effect/
You can use your hover event to trigger the effect.
i.e. something like:
A demo with the above code: http://jsfiddle.net/techfoobar/cKqsC/