Small vanilla module for popovers.
npm install polvo-labs/vanilla-popover --save
Make sure to include css too.
<div data-popover="Place your content here..."></div>
var popover = new VanillaPopover('[data-popover]', {})
- Type:
String
- Default:
vanilla-popover
- Type:
String
- Default:
null
- Type:
String
- Default:
<div class="{customClass}">{content}</div>
- Type:
String
- Default:
show
- Options:
show
: it will only showfade
: it will fade
- Type:
Boolean
- Default:
false
- Type:
Number
- Default:
10
- Type:
Number
- Default:
0
- Type:
String
- Default:
#696969
- RGB are preferred