Currently, I am working on a task that involves making a background image disappear and then revealing some text with a link in the div. Although I have managed to make the image disappear upon mouseover, I am struggling to display the text. Below is my current progress. As a beginner in this field, any help would be greatly appreciated.
/* To remove the image, the first line is used, followed by setting the link
as hidden and attempting to make it visible, but the link remains invisible */
$('#res').mouseover(function(){
$(this).removeClass('resume');
$('#reslink').css(visibility,visible);
});
HTML:
<div id = "res" class = "floatleft squares resume"><a id = "reslin" class = "link" href="resume.php">link</a></div>
<div id = "pro" class = "floatleft squares projects"><a id = "prolin" class = "link" href="projects.php"></a></div>
<div id = "con" class = "floatleft squares contact"><a id = "conlin" class = "link" href="contact.php"></a></div>
<div id = "abo" class = "floatleft squares about"><a id = "abolin" class = "link" href="about.php"></a></a></div>
Styles:
a{
display: block;
background: grey;
height: 100%;
width: 100%;
visibility: hidden;
}
If further information is required, please let me know. Thank you for your assistance.