jQuery Tooltip UI - trigger tooltip after x seconds

前端 未结 2 2113
挽巷
挽巷 2021-01-02 23:59

Here is what I have so far:



  
    Tooltip Testings
    

        
2条回答
  •  死守一世寂寞
    2021-01-03 00:44

    you can try this:

    $(function() {
          $(document).tooltip({
            items: '.tooltip',
            hide: 500,
            position: { my: 'center bottom', at: 'center top' },
            content: 'Testing jquery tooltips!',
            show: {
              effect: "slideDown",
              delay: 250
            }
          });
        });
    

    the show property accepts object parameter with the following properties; effect, delay, duration, and easing.

    http://api.jqueryui.com/tooltip/#option-show

提交回复
热议问题