yuvi
yuvi

Reputation: 18427

make popover appear only after a few seconds of hover

Using bootstrap popover, I can do:

$("#example").popover({ 
     trigger: "hover"
});

so the popover react to a hover instead of a click (demo). However - I want to set it to appear after a few seconds of hover (say 2). Is there any simple way to do it? I've searched everywhere but couldn't find any anything similar...

Upvotes: 1

Views: 1618

Answers (1)

adeneo
adeneo

Reputation: 318232

That would be the delay option

$('#elem').popover({
    trigger: "hover",
    delay: {show : 2000, hide : 0}
});

FIDDLE

Upvotes: 5

Related Questions