I am trying to make a banner where when the image is hovered the content of the page is hidden and comes back after they stop hovering. I have managed to display the banner below but I don't know how to hide the page content.
Can anyone help? Thanks
.page-content {
display: block;
}
.banner-content {
display none;
}
.banner-button:hover .banner-content { display: block;}
.banner-button:hover .page-content {display: none;}
<html>
<div class="banner-button">hover button</div>
<div class="banner-content">banner</div>
<div class="page-content">page content</div> /* hide this on hover*/
</html>