Jquery UI tooltip. Set timeout and set hover events. Freeze tooltip on mouseover

前端 未结 7 1309
遥遥无期
遥遥无期 2020-12-09 11:51

I\'ve googled about 2 days and can\'t figure out how to set timeout for http://api.jqueryui.com/tooltip/ ???

Maybe i should use jquery hoverIntent ?

here is

7条回答
  •  遥遥无期
    2020-12-09 12:36

    A variant on the response from @naveen. This has a duration, but with jQuery UI easing doesn't show at all until past half the duration (400ms in this case of 800ms). If the user doesn't keep the mouse hovered, this functions like hover intent since the tooltip would never be available. Simple, elegant way to fix the problem.

    $( ".selector" ).tooltip({ show: { easing: "easeInExpo", duration: 800 } });
    

提交回复
热议问题