JSFiddle - React, Tailwind, and code Playground

by gubhaju

HTML

<a href="#" class="testing">
link 
<div class="tooltip">
<!--information goes here -->
</div>
</a>

CSS

.tooltip{
display:none;
height:100px;
width:100px;
background-color:#000;
}

JavaScript

$('.testing').live('mouseover',function(){
$(this).children('.tooltip').fadeIn(300);})
    
$('.testing').live('mouseout',function(){
$(this).children('.tooltip').fadeOut(300);})