I have have a span element that I want to let fade in from display none. Fading out works perfectly fine but Fading in just doesnt work,
Here is the css of the span element:
$(".button_5").hover(function () {
$(".box5 span.info").fadeIn();
});
//The fade out just works fine:
$(".button_5").hover(function () {
$(".box5 span.info").fadeOut();
});
.box5 span.info:before{
content:"15 vacatures";
margin:0;
padding:0 0 28px 0;
display:0;
}
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
<div class="col1">
<div class="button_5">
<div class="box5">
<br><br>
<span class="title"></span><br/>
<span class="info"></span>
</div>
</div>
</div>