Reputation: 968
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.
Upvotes: 3
Views: 135
Reputation: 2854
Use mouse events mouseenter
and mouseleave
.
$('.popover-example li a').mouseenter(function() {
$(this).trigger("click");
}).mouseleave(function() {
$(this).trigger("click");
})
Upvotes: 0
Reputation: 20526
Try adding this:
$('.popover-example a').hover(
function(){
$(this).click();
}
);
https://jsfiddle.net/14Lz0f5z/
Upvotes: 3