tooltip-quicker
v1.0.0
Published
Tooltip quicker is a small library, that helps you create new tooltips in a quick way.
Downloads
3
Readme
tooltipQuicker.addTooltip('.parent-elem',{ eventType: 'click', dissapear: false });
<body class="parent-elem">
<div tip-quick>
<div class="tooltip-quicker icon-2"></div>
<div class="tooltip-content">
<h1>Content</h1>
<img class="tooltip-close-icon" src="images/close-tooltip.png" alt="close-tooltip"/>
</div>
</div>
</body>
{
eventType: 'click' || 'hover',
dissapear: true || false
}
<div class="parent-elem">
<div tip-quick> <!-- Has to have tip-quick attribute -->
<div class="tooltip-quicker icon-1"></div> <!-- Has to have tooltip-quicker class and icon-1 is optional -->
<div class="tooltip-content"> <!-- Has to have tooltip-content class -->
<h1>Content</h1>
<img class="tooltip-close-icon" src="images/close-tooltip.png" alt="close-tooltip"/> <!-- Has to have close icon with the class tooltip-close-icon -->
</div>
</div>
</div>