atomiks / tippyjs

Tooltip, popover, dropdown, and menu library
https://atomiks.github.io/tippyjs/
MIT License
11.92k stars 520 forks source link

Show and hide after clicking #906

Closed artstylee closed 3 years ago

artstylee commented 3 years ago

hello im using tippy for show tips for a second on click the code looks like this

      tippy('.copybtn', {
        content: 'Скопировано!',
        trigger: 'click',
        duration: 200,
        delay: 50,
      });

is that possible to make it show after click for a few seconds and hide it?

artstylee commented 3 years ago

and is it possible to change tip content after click?

atomiks commented 3 years ago

Yes it's possible. You can use the onShow hook and add a setTimeout inside that calls instance.hide()

and is it possible to change tip content after click?

All available in the docs