Struggling with jquery and css, could use some assistance :)
Check out my html code below:
<html>
<head>
//myscripts
<script>
$(document).ready(function(){
$(".cover").hover(function(){
//the function i need to write
});
});
</script>
</head>
<body>
<div class="card">
<img class="cover" src="cover.png" />
<span class="detail" style="display:none;">
More details
</span>
</div>
<div class="card">
<img class="cover" src="cover.png" />
<span class="detail" style="display:none;">
More details
</span>
</div>
<div class="card">
<img class="cover" src="cover.png" />
<span class="detail" style="display:none;">
More details
</span>
</div>
</body>
</html>
In need of a function where the detail class fades in when cursor hovers over image. Detail box should not disappear when cursor is moved over it. Any help would be appreciated, thank you!