I am trying to make some animations with the main navigation of my site. With this, I would want to apply a bouncing effect as the navigation menu item is hovered. This is the structure of my navigation:
<div>
<ul>
<li><a>Home</a></li>
<li><a>About</a></li>
<li><a>Testimonials</a></li>
<li><a>Contact Us</a></li>
</ul>
</div>
Then I have this on my script.js file:
$('nav ul li a').hover(function() { //mouse in
$(this).parent().effect("bounce", { times:3 }, 'normal')
});
I already have each list item bounced when they get hovered but I'm having problems because as they are hovered, the list items alignment break like they would get dropped at the bottom(my list items are supposed to be inline). Also they continuously bounce whenever they are being hovered.
What I wanted to happen is that I could limit it's bouncing effect that it would only do the bouncing once and would just bounce again after mouseout from the link. Also, I wanted to maintain the inline display of my navigation when bouncing.
Is this possible? I have tried some stuff but it's not working. Any help would be appreciated. Thank you in advance.