1.0.0 • Published 6 years ago

tooltip-quicker v1.0.0

Weekly downloads
1
License
ISC
Repository
-
Last release
6 years ago
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>