JSFiddle - React, Tailwind, and code Playground
HTML
<div class="test">
<div class="inner">Some popup that is long enough<br/>and that spans at least at two lines</div>
Hover me! <a href="#">Just some link</a>
</div>
CSS
.test {
position: relative;
background: #888;
}
.inner {
position: absolute;
top: 0;
left: 0;
opacity: 0;
visibility: hidden;
-webkit-transition: all 1s;
-moz-transition: all 1s;
-o-transition: all 1s;
transition: all 1s;
background: #9F9;
}
.test:hover .inner {
opacity: 1;
visibility: visible;
}
A:hover {
color: #F00;
}