My goal is to create a div that changes when I hover over it. However, when I move my mouse into the div, there seems to be some lagging and the content does not appear clearly. Below is the HTML and CSS code I have used:
.unshow-txt:hover,
.unshow-txt:focus,
.unshow-txt:active {
display: none;
}
.show-txt {
display: none;
font-size: 18px;
}
.box:hover .show-txt,
.box:focus .show-txt,
.box:active .show-txt {
display: inline;
}
<div class="box">
<div class="unshow-txt">
<div class="middle">
<div class="circle-o">
<i class="fa fa-eye fa-3x" aria-hidden="true"></i>
</div>
</div>
<h2 class="h2-bigger text-center">Vorausschauend</h2>
</div>
<div class="show-txt">
<p>Some text</p>
</div>
</div>