Riot Zeast Captain Riot Zeast Captain - 2 years ago 144
HTML Question

How to change mouse click to mouse hover?

Here is the jsfiddle link in which I got the code for the animated tooltips, but the problem is that on

click
only they are working, I want that to be animate when I
hover
the mouse on it.

Answer Source

JSFiddle.

Use mouse events mouseenter and mouseleave.

$('.popover-example li a').mouseenter(function() {
   $(this).trigger("click");
}).mouseleave(function() {
   $(this).trigger("click");
})
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download