Trigger
Type | String |
Available options | "hover" , "click" |
Default | "hover" |
Determines which event triggers the hovercard opening.
Hover
If set to hover, Coupdoeil will listen for "mouseover"
event to trigger opening. Hovercard will stay open while mouse is hovering either coup-doeil
element or hovercard element and close when leaving them.
Click
If set to click, Coupdoeil will listen for "click"
event to trigger opening. To close hovercard, user must click outside of coup-doeil
or hovercard elements. Hovercard will also close on click on an element contained within the hovercard element that has the attribute data-hovercard-close
.